Neighbours finding well

This commit is contained in:
Vladislav Khorev committed 2025-12-14 17:45:29 +03:00
1 parent 16ba536481
commit a91d7c04e8
5 files changed
+240 -142

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ const float DIST_FOG_MIN = 1000.0;
const float Z_FOG_START_RATIO = 0.9;
// Какую долю от Zfar должен покрывать туман (например, 10% от Zfar)
const float Z_FOG_RANGE_RATIO = 0.1;
uniform vec3 uColor;
void main()
{
@@ -102,5 +102,5 @@ void main()
gl_FragColor = mix(vec4(finalColor.rgb, 0.5), FOG_COLOR, fogFactor);
//gl_FragColor = vec4((length(pos+vec3(0.0,0.0,45000.0))-20000.0)/100.0, 0.0,0.0, 1.0);
//gl_FragColor = vec4(fogFactor, 0.5,0.5, 1.0);
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
gl_FragColor = vec4(uColor, 1.0);
}