Finally fog is working

This commit is contained in:
Vladislav Khorev committed 2025-12-29 19:05:10 +03:00
1 parent 7287f4b619
commit 1af829bf49
15 files changed
+476 -60

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
varying vec2 TexCoord;
varying float vHeight;
uniform sampler2D Texture;
void main()
{
vec4 stoneColor = texture2D(Texture, TexCoord);
gl_FragColor = vec4(stoneColor.rgb, vHeight);
//gl_FragColor = vec4(vHeight, vHeight, vHeight, vHeight);
//gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);
}