fix shader file’s variable name dismatched with source file’s.

This commit is contained in:
dotlive
2017-10-19 07:30:33 +08:00
parent 922e127d0e
commit 8fef6cdd3e

View File

@@ -3,10 +3,10 @@ out vec4 FragColor;
in vec2 TexCoord; in vec2 TexCoord;
uniform sampler2D ourTexture1; uniform sampler2D texture1;
uniform sampler2D ourTexture2; uniform sampler2D texture2;
void main() void main()
{ {
FragColor = mix(texture(ourTexture1, TexCoord), texture(ourTexture2, TexCoord), 0.2); FragColor = mix(texture(texture1, TexCoord), texture(texture2, TexCoord), 0.2);
} }