diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-06-28 22:05:43 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-06-28 22:05:43 +0300 |
commit | ada6e720f941dbd50e75b04feea6dae16b8ffc55 (patch) | |
tree | f5bb643796be47860bf7ffec1c71a7156cbba9f7 /source/blender/draw/engines/eevee/shaders/lightprobe_geom.glsl | |
parent | 26b699a105acf47a66f14fe40539b471b409ecc0 (diff) |
GPU_codegen: Add support for passing attributes through the geometry stage.
Should fix some issues with missing attributes in Eevee.
Diffstat (limited to 'source/blender/draw/engines/eevee/shaders/lightprobe_geom.glsl')
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/lightprobe_geom.glsl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/lightprobe_geom.glsl b/source/blender/draw/engines/eevee/shaders/lightprobe_geom.glsl index e057e91eaef..222d272da72 100644 --- a/source/blender/draw/engines/eevee/shaders/lightprobe_geom.glsl +++ b/source/blender/draw/engines/eevee/shaders/lightprobe_geom.glsl @@ -23,6 +23,9 @@ void main() { for (int v = 0; v < 3; ++v) { gl_Position = vPos[v]; worldPosition = x_axis[f] * vPos[v].x + y_axis[f] * vPos[v].y + maj_axes[f]; +#ifdef ATTRIB + pass_attrib(v); +#endif EmitVertex(); } |