mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-01-04 00:23:41 +08:00
fixed sky from last fix teehee
This commit is contained in:
parent
1cd49fe249
commit
2c2f910850
@ -133,7 +133,7 @@ vec4 texture2D_bicubic_offset(sampler2D tex, vec2 uv, float noise, float scale)
|
|||||||
}
|
}
|
||||||
|
|
||||||
vec2 sphereToCarte(vec3 dir) {
|
vec2 sphereToCarte(vec3 dir) {
|
||||||
float lonlat = saturate(atan(-dir.x, -dir.z));
|
float lonlat = clamp(atan(-dir.x, -dir.z), -pi, pi);
|
||||||
return vec2(lonlat * (0.5/pi) +0.5,0.5*dir.y+0.5);
|
return vec2(lonlat * (0.5/pi) +0.5,0.5*dir.y+0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user