mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: darker
This commit is contained in:
1 parent
8b726c12d9
commit
e20d65d218
1 file changed
+1
-1
+1
-1
@@ -4,6 +4,6 @@
|
|||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
float fogFactor = smoothstep(fogNear, fogFar, vFogDepth);
|
float fogFactor = smoothstep(fogNear, fogFar, vFogDepth);
|
||||||
gl_FragColor = vec4(0.75, 0.75, 0.75, fogFactor);
|
gl_FragColor = vec4(0.5, 0.5, 0.5, fogFactor);
|
||||||
gl_FragColor.rgb = mix(gl_FragColor.rgb, fogColor, 1.0 - fogFactor);
|
gl_FragColor.rgb = mix(gl_FragColor.rgb, fogColor, 1.0 - fogFactor);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user