diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-05-15 17:12:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-05-15 17:14:18 +0300 |
commit | e053fade993204bbfaa98ced1b056e02226a3e61 (patch) | |
tree | 3990b649fe9a0b3d73ded25f9fab47b1aeca4790 /source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl | |
parent | ae9da3786a3ea2e62b1ece7e28628c2dbadf0605 (diff) |
Mesh Batch Cache: get rid of the ORCO VBO data, and reconstruct it in shader.
With only one MADD instruction we recover the orco data and reduce both the storage and the fetching cost of an attrib layer.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl b/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl index 4dd6bb1e287..7f1c32c8edf 100644 --- a/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/lit_surface_vert.glsl @@ -23,6 +23,6 @@ void main() { worldNormal = normalize(WorldNormalMatrix * nor); #ifdef ATTRIB - pass_attrib(); + pass_attrib(pos); #endif }
\ No newline at end of file |