Modified windlight shader to remove adjustment to glow.z
meow-7.2.2
Graham Linden 2019-07-15 15:59:45 -07:00
parent 946da4e507
commit 2fa2da3302
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ void calcAtmosphericVars(vec3 inPositionEye, vec3 light_dir, float ambFactor, ou
//set a minimum "angle" (smaller glow.y allows tighter, brighter hotspot)
temp2.x *= glow.x;
//higher glow.x gives dimmer glow (because next step is 1 / "angle")
temp2.x = pow(temp2.x, glow.z * 0.2);
temp2.x = pow(temp2.x, glow.z);
//glow.z should be negative, so we're doing a sort of (1 / "angle") function
//add "minimum anti-solar illumination"