|
|
@ -7,15 +7,15 @@ varying vec2 fragTexCoord; |
|
|
|
varying vec4 fragColor; |
|
|
|
|
|
|
|
// Input uniform values |
|
|
|
uniform sampler2D diffuseMap; |
|
|
|
uniform vec4 tiling; |
|
|
|
uniform sampler2D texture0; |
|
|
|
uniform vec4 colDiffuse; |
|
|
|
|
|
|
|
// NOTE: Add here your custom variables |
|
|
|
uniform vec2 tiling; |
|
|
|
|
|
|
|
void main() |
|
|
|
{ |
|
|
|
vec2 texCoord = fragTexCoord*tiling; |
|
|
|
fragColor = texture2D(diffuseMap, texCoord); |
|
|
|
|
|
|
|
gl_FragColor = fragColor; |
|
|
|
|
|
|
|
gl_FragColor = texture2D(texture0, texCoord)*colDiffuse; |
|
|
|
} |