Blender Git Loki

Git Commits -> Revision ab9822e

Revision ab9822e by Shinsuke Irie (master)
November 25, 2013, 13:19 (GMT)
Blender Internal: Add "Lamp Data" shader node that allows shaders to acquire information such as light vector from specified Lamp.

For now this provides the following outputs:

- Color
- Light Vector
- Distance
- Shadow
- Visibility Factor

Note: Color output is multiplied by the lamp energy. Multiplication of
color*max(dot(light_vector,normal_vector),0)*shadow*visibility_factor
produces the exact same result as the Lambert shader.

Many thanks to Brecht for code review and discussion!

Commit Details:

Full Hash: ab9822eff8865846d3c7ef81ff30cc35cb48ae0c
Parent Commit: 33bc6a3
Lines Changed: +296, -1

1 Added Path:

/source/blender/nodes/shader/nodes/node_shader_lamp.c (+86, -0) (View)

17 Modified Paths:

/release/scripts/startup/nodeitems_builtins.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+8, -0) (Diff)
/source/blender/gpu/GPU_material.h (+2, -0) (Diff)
/source/blender/gpu/intern/gpu_material.c (+47, -0) (Diff)
/source/blender/gpu/shaders/gpu_shader_material.glsl (+33, -0) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+13, -0) (Diff)
/source/blender/makesrna/intern/rna_object.c (+5, -0) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/NOD_shader.h (+1, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -0) (Diff)
/source/blender/render/extern/include/RE_shader_ext.h (+2, -1) (Diff)
/source/blender/render/intern/source/shadeoutput.c (+91, -0) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.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