Makes GLES using high precision for both vertex and fragment shaders.
This was SVN commit r27275.
This commit is contained in:
parent
3494e1f296
commit
d8bf4f6e62
@ -636,14 +636,14 @@ public:
|
||||
#if CONFIG2_GLES
|
||||
// Ugly hack to replace desktop GLSL 1.10/1.20 with GLSL ES 1.00,
|
||||
// and also to set default float precision for fragment shaders
|
||||
vertexCode.Replace("#version 110\n", "#version 100\n");
|
||||
vertexCode.Replace("#version 110\r\n", "#version 100\n");
|
||||
vertexCode.Replace("#version 120\n", "#version 100\n");
|
||||
vertexCode.Replace("#version 120\r\n", "#version 100\n");
|
||||
fragmentCode.Replace("#version 110\n", "#version 100\nprecision mediump float;\n");
|
||||
fragmentCode.Replace("#version 110\r\n", "#version 100\nprecision mediump float;\n");
|
||||
fragmentCode.Replace("#version 120\n", "#version 100\nprecision mediump float;\n");
|
||||
fragmentCode.Replace("#version 120\r\n", "#version 100\nprecision mediump float;\n");
|
||||
vertexCode.Replace("#version 110\n", "#version 100\nprecision highp float;\n");
|
||||
vertexCode.Replace("#version 110\r\n", "#version 100\nprecision highp float;\n");
|
||||
vertexCode.Replace("#version 120\n", "#version 100\nprecision highp float;\n");
|
||||
vertexCode.Replace("#version 120\r\n", "#version 100\nprecision highp float;\n");
|
||||
fragmentCode.Replace("#version 110\n", "#version 100\nprecision highp float;\n");
|
||||
fragmentCode.Replace("#version 110\r\n", "#version 100\nprecision highp float;\n");
|
||||
fragmentCode.Replace("#version 120\n", "#version 100\nprecision highp float;\n");
|
||||
fragmentCode.Replace("#version 120\r\n", "#version 100\nprecision highp float;\n");
|
||||
#endif
|
||||
|
||||
// TODO: replace by scoped bind.
|
||||
|
Loading…
Reference in New Issue
Block a user