Fix NV shader compile errors in combined.frag.

This commit is contained in:
Paul Chote
2019-12-15 12:19:22 +00:00
committed by abcdefg30
parent 51eaa17b1e
commit 7d887f0332

View File

@@ -85,9 +85,9 @@ void main()
{ {
vec2 coords = vTexCoord.st; vec2 coords = vTexCoord.st;
if (AntialiasPixelsPerTexel > 0) if (AntialiasPixelsPerTexel > 0.0)
{ {
vec2 textureSize = Size(vTexSampler.s); vec2 textureSize = vec2(Size(vTexSampler.s));
vec2 offset = fract(coords.st * textureSize); vec2 offset = fract(coords.st * textureSize);
// Offset the sampling point to simulate bilinear intepolation in window coordinates instead of texture coordinates // Offset the sampling point to simulate bilinear intepolation in window coordinates instead of texture coordinates