Cool working

This commit is contained in:
Vladislav Khorev committed 2025-12-13 23:17:03 +03:00
1 parent 27fb7a448c
commit af550f56a7
12 files changed
+379 -11

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
uniform samplerCube Texture;
uniform float skyPercent;
varying vec3 dir;
void main(){
vec4 skyBoxColor = textureCube(Texture, normalize(dir));
vec4 skyColor = vec4(0.0, 0.5, 1.0, 1.0);
gl_FragColor = skyPercent*skyColor + (1.0 - skyPercent) * skyBoxColor;
}