Cycles: Cleanup, typos

This commit is contained in:
Sergey Sharybin 2015-04-08 01:13:16 +05:00
parent cc9c049ff7
commit 09a746b857
2 changed files with 5 additions and 5 deletions

View File

@ -77,10 +77,10 @@ void triangle_intersect_precalc(float3 dir,
}
/* Calculate the shear constants. */
float inf_dir_z = 1.0f / IDX(dir, kz);
isect_precalc->Sx = IDX(dir, kx) * inf_dir_z;
isect_precalc->Sy = IDX(dir, ky) * inf_dir_z;
isect_precalc->Sz = inf_dir_z;
float inv_dir_z = 1.0f / IDX(dir, kz);
isect_precalc->Sx = IDX(dir, kx) * inv_dir_z;
isect_precalc->Sy = IDX(dir, ky) * inv_dir_z;
isect_precalc->Sz = inv_dir_z;
/* Store the dimensions. */
isect_precalc->kx = kx;

View File

@ -892,7 +892,7 @@ void ShaderGraph::dump_graph(const char *filename)
input,
output->name, input->name);
fprintf(fd,
"\"\%p\":\"OUT_%p\":e -> \"%p\":\"IN_%p\":w [label=\"\"]\n",
"\"%p\":\"OUT_%p\":e -> \"%p\":\"IN_%p\":w [label=\"\"]\n",
output->parent,
output,
input->parent,