diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-20 15:16:54 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-05-22 16:12:14 +0300 |
commit | 120492ace9150913f106f329942684c583a6f697 (patch) | |
tree | 117c2be4b67cfc5caa50b6a54f65ec3bf0387863 /source/blender/editors/space_view3d | |
parent | 6115267a845a49bdf9a5d4c701fcf5b995fc499a (diff) |
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
Diffstat (limited to 'source/blender/editors/space_view3d')
0 files changed, 0 insertions, 0 deletions