Blender Git Loki

Git Commits -> Revision 0da13ad

Revision 0da13ad by Alexander Romanov (master)
June 7, 2016, 07:42 (GMT)
World space switch for BI nodes.

At the moment light shading in Blender is produced in viewspace. Apparently, that's why
shader nodes work with normals in camera space. But it is not convenient for artists.
The more convenient approach is implemented in Cycles where normals are represented in world space.
Blend4Web Team designed the engine keeping in mind shader parameters readability,
so normals are interpreted in world space as well. And now our users have to use some tweaks, like
empty node group with the name "Replace", which is replacing one input by another on the engine side
(replacing working configuration in Blender Viewport by the configuration that has the same behavior in the engine).

This patch adds the ability to switch to world space for normals and lamp vector in BI and Viewport.
This patch is very important to us and we crave to see this patch in Blender 2.7 because
it will significantly simplify Blend4Web material creation workflow.

{F315547}

{F315548}

Reviewers: campbellbarton, brecht

Reviewed By: brecht

Subscribers: homyachetser, Evgeny_Rodygin, AlexKowel, yurikovelenov

Differential Revision: https://developer.blender.org/D2046

Commit Details:

Full Hash: 0da13ad1ebea9e880a0cd7e1d8b32ea567aef174
Parent Commit: 441a440
Lines Changed: +80, -18

13 Modified Paths:

/release/scripts/startup/bl_ui/properties_render.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_scene.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/scene.c (+6, -0) (Diff)
/source/blender/gpu/GPU_material.h (+1, -0) (Diff)
/source/blender/gpu/intern/gpu_material.c (+5, -0) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+5, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_geom.c (+10, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_lamp.c (+6, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_material.c (+17, -1) (Diff)
/source/blender/nodes/shader/nodes/node_shader_normal_map.c (+25, -15) (Diff)
/source/blender/render/extern/include/RE_shader_ext.h (+1, -0) (Diff)
/source/blender/render/intern/source/shadeinput.c (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021