Workaround for built-in shaders on some ES2 devices which don't support highp in pixel shaders.

This commit is contained in:
slime
2022-08-25 19:25:01 -03:00
parent 96820749ad
commit db1bf4707c
4 changed files with 56 additions and 11 deletions
+4 -1
View File
@@ -64,6 +64,7 @@ public:
BUILTIN_TEXTURE_VIDEO_CB,
BUILTIN_TEXTURE_VIDEO_CR,
BUILTIN_UNIFORMS_PER_DRAW,
BUILTIN_UNIFORMS_PER_DRAW_2,
BUILTIN_MAX_ENUM
};
@@ -176,8 +177,10 @@ public:
Matrix4 transformMatrix;
Matrix4 projectionMatrix;
Vector4 normalMatrix[3]; // 3x3 matrix padded to an array of 3 vector4s.
Vector4 screenSizeParams;
Colorf constantColor;
// Pixel shader-centric variables past this point.
Vector4 screenSizeParams;
};
// Pointer to currently active Shader.