lighting setup
This commit is contained in:
parent
ccc1c76762
commit
16b674efc1
4 changed files with 85 additions and 90 deletions
|
|
@ -8,5 +8,9 @@ uniform sampler2D decal;
|
|||
|
||||
void main()
|
||||
{
|
||||
FragColor = mix(texture(ourTexture, TexCoord), texture(decal, TexCoord), 0.2f);
|
||||
}
|
||||
vec4 tex1 = texture(ourTexture, TexCoord);
|
||||
vec4 tex2 = texture(decal, TexCoord);
|
||||
vec4 textures = mix(tex1, tex2, 0.2f);
|
||||
|
||||
FragColor = textures;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue