Blender Git Commit Log

Git Commits -> Revision ccef6d3

Revision ccef6d3 by Sergey Sharybin (compositor-2016)
June 8, 2016, 19:45 (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: ccef6d37eeb3bade127ca22b7e6bbceef27e419b
Parent Commit: 9174793
Committed By: Jeroen Bakker
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