@@ -201,19 +201,19 @@ public abstract class PGL {
201
201
202
202
protected static String [] tex2DFragShaderSource = {
203
203
SHADER_PREPROCESSOR_DIRECTIVE ,
204
- "uniform sampler2D texSampler ;" ,
204
+ "uniform sampler2D texMap ;" ,
205
205
"varying vec2 vertTexCoord;" ,
206
206
"void main() {" ,
207
- " gl_FragColor = texture2D(texSampler , vertTexCoord.st);" ,
207
+ " gl_FragColor = texture2D(texMap , vertTexCoord.st);" ,
208
208
"}"
209
209
};
210
210
211
211
protected static String [] texRectFragShaderSource = {
212
212
SHADER_PREPROCESSOR_DIRECTIVE ,
213
- "uniform sampler2DRect texSampler ;" ,
213
+ "uniform sampler2DRect texMap ;" ,
214
214
"varying vec2 vertTexCoord;" ,
215
215
"void main() {" ,
216
- " gl_FragColor = texture2DRect(texSampler , vertTexCoord.st);" ,
216
+ " gl_FragColor = texture2DRect(texMap , vertTexCoord.st);" ,
217
217
"}"
218
218
};
219
219
@@ -907,7 +907,7 @@ protected void initTex2DShader() {
907
907
if (0 < tex2DShaderProgram ) {
908
908
tex2DVertLoc = getAttribLocation (tex2DShaderProgram , "position" );
909
909
tex2DTCoordLoc = getAttribLocation (tex2DShaderProgram , "texCoord" );
910
- tex2DSamplerLoc = getUniformLocation (tex2DShaderProgram , "texSampler " );
910
+ tex2DSamplerLoc = getUniformLocation (tex2DShaderProgram , "texMap " );
911
911
}
912
912
loadedTex2DShader = true ;
913
913
tex2DShaderContext = glContext ;
@@ -1033,7 +1033,7 @@ protected void initTexRectShader() {
1033
1033
if (0 < texRectShaderProgram ) {
1034
1034
texRectVertLoc = getAttribLocation (texRectShaderProgram , "position" );
1035
1035
texRectTCoordLoc = getAttribLocation (texRectShaderProgram , "texCoord" );
1036
- texRectSamplerLoc = getUniformLocation (texRectShaderProgram , "texSampler " );
1036
+ texRectSamplerLoc = getUniformLocation (texRectShaderProgram , "texMap " );
1037
1037
}
1038
1038
loadedTexRectShader = true ;
1039
1039
texRectShaderContext = glContext ;
0 commit comments