space-game001/shaders/env_sky_desktop.fragment
Vladislav Khorev af550f56a7 Cool working
2025-12-13 23:17:03 +03:00

11 lines
263 B
Plaintext

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;
}