Style cleanup: indentation, braces

This commit is contained in:
Campbell Barton
2014-05-05 02:19:08 +10:00
parent e86dbf6877
commit dc13969e48
45 changed files with 130 additions and 122 deletions

View File

@@ -154,8 +154,8 @@ ccl_device int bsdf_microfacet_ggx_sample(const ShaderClosure *sc, float3 Ng, fl
float sinThetaM = cosThetaM * safe_sqrtf(tanThetaM2);
float phiM = M_2PI_F * randv;
float3 m = (cosf(phiM) * sinThetaM) * X +
(sinf(phiM) * sinThetaM) * Y +
cosThetaM * Z;
(sinf(phiM) * sinThetaM) * Y +
( cosThetaM) * Z;
if(!m_refractive) {
float cosMO = dot(m, I);
if(cosMO > 0) {
@@ -383,8 +383,8 @@ ccl_device int bsdf_microfacet_beckmann_sample(const ShaderClosure *sc, float3 N
float sinThetaM = cosThetaM * tanThetaM;
float phiM = M_2PI_F * randv;
float3 m = (cosf(phiM) * sinThetaM) * X +
(sinf(phiM) * sinThetaM) * Y +
cosThetaM * Z;
(sinf(phiM) * sinThetaM) * Y +
( cosThetaM) * Z;
if(!m_refractive) {
float cosMO = dot(m, I);