Commits

davep  committed deeef82

SH-2120 Fix for water being very dark when basic shaders disabled.

  • Participants
  • Parent commits 02fc2e4

Comments (0)

Files changed (1)

File indra/newview/llvosky.cpp

 {
 	// project the direction ray onto the sky dome.
 	F32 phi = acos(Pn[1]);
-	F32 sinA = sin(F_PI - phi);
+	F32 sinA = llmax(sin(F_PI - phi), 0.01f);
 	F32 Plen = dome_radius * sin(F_PI + phi + asin(dome_offset_ratio * sinA)) / sinA;
 
 	Pn *= Plen;