mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-12 02:08:18 +08:00
fixed cloud/fog/ambient light on mac
This commit is contained in:
1 parent
d43e821ef2
commit
1cd49fe249
1 file changed
+1
-1
@@ -133,7 +133,7 @@ vec4 texture2D_bicubic_offset(sampler2D tex, vec2 uv, float noise, float scale)
|
||||
}
|
||||
|
||||
vec2 sphereToCarte(vec3 dir) {
|
||||
float lonlat = atan(-dir.x, -dir.z);
|
||||
float lonlat = saturate(atan(-dir.x, -dir.z));
|
||||
return vec2(lonlat * (0.5/pi) +0.5,0.5*dir.y+0.5);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user