Cycles / Math:

* Add M_2PI_F and M_4PI_F constants and use them inside the codebase.
This commit is contained in:
Thomas Dinges
2013-05-12 14:13:29 +00:00
parent 469979f9cb
commit 7636aeffe1
15 changed files with 41 additions and 29 deletions

View File

@@ -287,7 +287,7 @@ __device void svm_node_closure_bsdf(KernelGlobals *kg, ShaderData *sd, float *st
float rotation = stack_load_float(stack, data_node.w);
if(rotation != 0.0f)
sc->T = rotate_around_axis(sc->T, sc->N, rotation * 2.0f * M_PI_F);
sc->T = rotate_around_axis(sc->T, sc->N, rotation * M_2PI_F);
/* compute roughness */
float roughness = param1;