This commit is contained in:
Eduardo Bart 2011-12-07 00:13:24 -02:00
parent b37a34219d
commit cc7c334d73
1 changed files with 9 additions and 9 deletions

View File

@ -36,10 +36,10 @@ static const std::string glslMainVertexShader = "\n\
}\n"; }\n";
static const std::string glslMainWithTexCoordsVertexShader = "\n\ static const std::string glslMainWithTexCoordsVertexShader = "\n\
attribute vec2 textureCoord;\n\ attribute highp vec2 textureCoord;\n\
uniform mat2 textureTransformMatrix;\n\ uniform highp mat2 textureTransformMatrix;\n\
varying vec2 textureCoords;\n\ varying highp vec2 textureCoords;\n\
vec4 calculatePosition();\n\ highp vec4 calculatePosition();\n\
void main()\n\ void main()\n\
{\n\ {\n\
gl_Position = calculatePosition();\n\ gl_Position = calculatePosition();\n\
@ -47,9 +47,9 @@ static const std::string glslMainWithTexCoordsVertexShader = "\n\
}\n"; }\n";
static std::string glslPositionOnlyVertexShader = "\n\ static std::string glslPositionOnlyVertexShader = "\n\
attribute vec2 vertexCoord;\n\ attribute highp vec2 vertexCoord;\n\
uniform mat3 projectionMatrix;\n\ uniform highp mat3 projectionMatrix;\n\
vec4 calculatePosition() {\n\ highp vec4 calculatePosition() {\n\
return vec4(projectionMatrix * vec3(vertexCoord.xy, 1), 1);\n\ return vec4(projectionMatrix * vec3(vertexCoord.xy, 1), 1);\n\
}\n"; }\n";
@ -65,12 +65,12 @@ static const std::string glslTextureSrcFragmentShader = "\n\
varying mediump vec2 textureCoords;\n\ varying mediump vec2 textureCoords;\n\
uniform lowp vec4 color;\n\ uniform lowp vec4 color;\n\
uniform sampler2D texture;\n\ uniform sampler2D texture;\n\
vec4 calculatePixel() {\n\ lowp vec4 calculatePixel() {\n\
return texture2D(texture, textureCoords) * color;\n\ return texture2D(texture, textureCoords) * color;\n\
}\n"; }\n";
static const std::string glslSolidColorFragmentShader = "\n\ static const std::string glslSolidColorFragmentShader = "\n\
uniform lowp vec4 color;\n\ uniform lowp vec4 color;\n\
vec4 calculatePixel() {\n\ lowp vec4 calculatePixel() {\n\
return color;\n\ return color;\n\
}\n"; }\n";