Revert "fix T40375 Glossy shader bakes different than render"

This reverts commit 12abe94de8.

After a long discussion in the bug tracker we decided baking should use
the faces normals for glossy (and combined). This is what Blender
Internal is doing, and one of the more predictable way of yielding
predictable results.

That also means the result will not match the render perfectly, but this
is preferrable over the alternatives at hand.

Conflicts:
	intern/cycles/kernel/kernel_bake.h
This commit is contained in:
Dalai Felinto 2014-05-29 01:16:45 -03:00
parent 96f303392b
commit 3a3edc6c2d
Notes: blender-bot 2023-06-07 10:31:13 +02:00
Referenced by issue #40375, Glossy shader bakes different than render
1 changed files with 1 additions and 2 deletions

View File

@ -180,8 +180,7 @@ ccl_device void kernel_bake_evaluate(KernelGlobals *kg, ccl_global uint4 *input,
PathRadiance L;
shader_setup_from_sample(kg, &sd, P, Ng, I, shader, object, prim, u, v, t, time, bounce, transparent_bounce);
sd.I = camera_direction_from_point(kg, sd.P);
sd.I = sd.N;
/* update differentials */
sd.dP.dx = sd.dPdu * dudx + sd.dPdv * dvdx;