diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-14 19:18:32 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-14 19:18:32 +0300 |
commit | 3ab879ed5a58145e7d5530144dc7fa4d6edc5b91 (patch) | |
tree | 1014c4f389dde7ec143e22d2c6f755db6a3b1bf6 | |
parent | f7d415ab42c3203d370b62d6ed99e7a894030a33 (diff) |
Fix T58793: Volumetric Clouds in Eevee not working | MacOs
Fix missing attribute in vertex shader. Theses are optimized out if using
volumetric shader but on MacOS they seems to be needed.
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/volumetric_vert.glsl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/volumetric_vert.glsl b/source/blender/draw/engines/eevee/shaders/volumetric_vert.glsl index a99acd41fbd..d77f95b98c1 100644 --- a/source/blender/draw/engines/eevee/shaders/volumetric_vert.glsl +++ b/source/blender/draw/engines/eevee/shaders/volumetric_vert.glsl @@ -24,4 +24,8 @@ void main() vPos.y = float(v_id % 2) * 4.0 - 1.0; vPos.z = float(t_id); vPos.w = 1.0; + +#ifdef USE_ATTR + pass_attr(vec3(0.0)); +#endif } |