Blender Git Loki

Git Commits -> Revision d9ddc99

Revision d9ddc99 by Sergey Sharybin (master)
December 10, 2014, 14:12 (GMT)
Fix T42184: Normal not displayed correctly in Material Viewport

There was a differences between how Cycles and BI treats Normal shader:

- Different normal direction assumption
- Different policy about vector normalization

Previous idea of trying to use single function and flip the output if
needed becomes more tricky, so i've just added new GLSL function which
corresponds to how Cycles deals with the Normal shader.

Commit Details:

Full Hash: d9ddc99a27a4b50b54c1582d780c21f78483375d
Parent Commit: d68521d
Lines Changed: +11, -5

2 Modified Paths:

/source/blender/gpu/shaders/gpu_shader_material.glsl (+6, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_normal.c (+5, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021