From 5fa66762b3e1f77fe3fc7005af6981bd93b9902a Mon Sep 17 00:00:00 2001 From: S2S <12202580+standard-two-simplex@users.noreply.github.com> Date: Sat, 10 Oct 2020 13:51:22 +0200 Subject: [PATCH] Define STVEC in an Intel friendly way. --- src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp b/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp index 98c3abc5..ca94018d 100644 --- a/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp +++ b/src/Graphics/OpenGLContext/GLSL/glsl_CombinerProgramBuilder.cpp @@ -554,7 +554,7 @@ public: } m_part += // Return the vector of the standard basis of R^4 with a 1 at position and 0 otherwise. - " #define STVEC(pos) step(float(pos) - 0.5, vec4(0.0,1.0,2.0,3.0)) - step(float(pos) + 0.5, vec4(0.0,1.0,2.0,3.0)) \n"; + " #define STVEC(pos) (step(float(pos), vec4(0.5,1.5,2.5,3.5)) - step(float(pos), vec4(-0.5,0.5,1.5,2.5))) \n"; } };