mirror of
https://github.com/LearnOpenGL-CN/LearnOpenGL-CN.git
synced 2025-08-23 12:45:29 +08:00
Fix #86
This commit is contained in:
@@ -340,12 +340,12 @@ glBindTexture(GL_TEXTURE_2D, texture);
|
|||||||
#version 330 core
|
#version 330 core
|
||||||
...
|
...
|
||||||
|
|
||||||
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