mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
fix shader file’s variable name dismatched with source file’s.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user