Blender Git Loki

Git Commits -> Revision 6c1a121

Revision 6c1a121 by Jeroen Bakker (master)
April 25, 2018, 19:33 (GMT)
Workbench: normal packing

Normal packing. The sign is stored in the A of the color buffer.
if the A == 1.0 the normal should be inverted. before use.

The reason is that packing has more precision for frontfaces, than for
backfaces

Commit Details:

Full Hash: 6c1a121aef0e2a1fb06121a44d3d57eca20a003e
Parent Commit: fa43886
Lines Changed: +27, -21

4 Modified Paths:

/source/blender/draw/engines/workbench/shaders/workbench_common_lib.glsl (+3, -9) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_composite_frag.glsl (+9, -5) (Diff)
/source/blender/draw/engines/workbench/shaders/workbench_prepass_frag.glsl (+14, -6) (Diff)
/source/blender/draw/engines/workbench/workbench_materials.c (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021