Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-09-17 16:08:14 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-09-17 16:08:14 +0300
commit731d0d8d0f499d8eb8a21ae12d0d5a6c61f1a37a (patch)
tree882b378f06b21a8b1020679a8fda5087fddf857f /source
parent3da5b03b8ac1ec1392631512e79fcc5d4fdfd916 (diff)
Eevee: Fix shader linking error with volumetric shaders
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/engines/eevee/shaders/volumetric_geom.glsl18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/volumetric_geom.glsl b/source/blender/draw/engines/eevee/shaders/volumetric_geom.glsl
index 208e8165689..d435bda4f60 100644
--- a/source/blender/draw/engines/eevee/shaders/volumetric_geom.glsl
+++ b/source/blender/draw/engines/eevee/shaders/volumetric_geom.glsl
@@ -17,12 +17,21 @@ flat out int slice;
void main() {
gl_Layer = slice = int(vPos[0].z);
+#ifdef ATTRIB
+ pass_attrib(0);
+#endif
gl_Position = vPos[0].xyww;
EmitVertex();
+#ifdef ATTRIB
+ pass_attrib(1);
+#endif
gl_Position = vPos[1].xyww;
EmitVertex();
+#ifdef ATTRIB
+ pass_attrib(2);
+#endif
gl_Position = vPos[2].xyww;
EmitVertex();
@@ -37,12 +46,21 @@ void main() {
void main() {
gl_Layer = slice = int(vPos[0].z);
+#ifdef ATTRIB
+ pass_attrib(0);
+#endif
gl_Position = vPos[0].xyww;
EmitVertex();
+#ifdef ATTRIB
+ pass_attrib(1);
+#endif
gl_Position = vPos[1].xyww;
EmitVertex();
+#ifdef ATTRIB
+ pass_attrib(2);
+#endif
gl_Position = vPos[2].xyww;
EmitVertex();