Skip to content

Commit d51782d

Browse files
committed
half-glsl
1 parent 8734ef1 commit d51782d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/renderer/glsl_source/skybox_fp.glsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ DECLARE_OUTPUT(vec4)
4343

4444
// Parametric cloud function used by quake 3 skybox code
4545
float ComputeCloudParametric( vec3 skyVec, float radiusWorld, float cloudHeight ) {
46-
return (1.0 / 2.0 * dot( skyVec, skyVec ) ) * ( -2.0 * skyVec.z * radiusWorld
46+
return (0.5 * dot( skyVec, skyVec ) ) * ( -2.0 * skyVec.z * radiusWorld
4747
+ 2.0 * sqrt( skyVec.z * skyVec.z * radiusWorld * radiusWorld
4848
+ 2.0 * skyVec.x * skyVec.x * radiusWorld * cloudHeight
4949
+ skyVec.x * skyVec.x * cloudHeight * cloudHeight + 2.0 * skyVec.y * skyVec.y * radiusWorld * cloudHeight

0 commit comments

Comments
 (0)