Cleanup: style

This commit is contained in:
Campbell Barton 2014-09-30 02:04:34 +10:00
parent ec8fb6dbef
commit 927099ceb8
4 changed files with 8 additions and 8 deletions

@ -93,6 +93,6 @@ shader node_brick_texture(
Col[2] = facm * (Color1[2]) + tint * Color2[2];
}
Color = (Fac == 1.0) ? Mortar: Col;
Color = (Fac == 1.0) ? Mortar : Col;
}

@ -36,7 +36,7 @@ float fresnel_dielectric_cos(float cosi, float eta)
color fresnel_conductor(float cosi, color eta, color k)
{
color cosi2 = color(cosi*cosi);
color cosi2 = color(cosi * cosi);
color one = color(1, 1, 1);
color tmp_f = eta * eta + k * k;
color tmp = tmp_f * cosi2;

@ -49,7 +49,7 @@ shader node_geometry(
/* try to create spherical tangent from generated coordinates */
if (getattribute("geom:generated", generated)) {
normal data = normal(-(generated[1]-0.5), (generated[0]-0.5), 0.0);
normal data = normal(-(generated[1] - 0.5), (generated[0] - 0.5), 0.0);
vector T = transform("object", "world", data);
Tangent = cross(Normal, normalize(cross(T, Normal)));
}

@ -16,7 +16,7 @@
color fresnel_conductor(float cosi, color eta, color k)
{
color cosi2 = color(cosi*cosi);
color cosi2 = color(cosi * cosi);
color one = color(1, 1, 1);
color tmp_f = eta * eta + k * k;
color tmp = tmp_f * cosi2;