Cycles / SunSky:

* Use already calculated theta^2 for theta^3 calculation.
This commit is contained in:
Thomas Dinges
2013-03-27 19:44:25 +00:00
parent c766b0792a
commit 535253cad0
2 changed files with 2 additions and 2 deletions

View File

@@ -393,7 +393,7 @@ static void sky_texture_precompute(KernelSunSky *ksunsky, float3 dir, float turb
ksunsky->phi = phi;
float theta2 = theta*theta;
float theta3 = theta*theta*theta;
float theta3 = theta2*theta;
float T = turbidity;
float T2 = T * T;