Blender Git Commit Log

Git Commits -> Revision 120492a

Revision 120492a by Sergey Sharybin (master)
May 22, 2016, 13:12 (GMT)
Cycles: Support bump mapping in GLSL viewport

This commit implements Bump node in GLSL, making it possible to
see previews of bump mapping in viewport without need to render.
Nothing really fancy going on here, just uses internal dFdx/dFdy
functions to get derivatives of the surface and map itself.
Quite basic but seems to behave correct-ish.

This commit also makes Displacement material output to affect
viewport shading by re-linking unconnected Normal input to a
node which was used for displacement output (via Bump node).

Intention of all this is to make it really easy to do bump map
painting with Cycles as an active render engine.

Reviewers: campbellbarton, mont29, brecht, psy-fi

Reviewed By: brecht

Subscribers: Blendify, eyecandy

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

Commit Details:

Full Hash: 120492ace9150913f106f329942684c583a6f697
Parent Commit: 6115267
Lines Changed: +188, -4

3 Modified Paths:

/source/blender/gpu/shaders/gpu_shader_material.glsl (+20, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bump.c (+8, -2) (Diff)
/source/blender/nodes/shader/node_shader_tree.c (+160, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021