summaryrefslogtreecommitdiff
path: root/examples/OpenGLWindow/Shaders/pointsVS.h
diff options
context:
space:
mode:
authorerwincoumans <erwin.coumans@gmail.com>2022-04-23 15:52:10 -0700
committerGitHub <noreply@github.com>2022-04-23 15:52:10 -0700
commitce23bb9dce1d2fe1fb0b1f9522afec54853f462f (patch)
tree5f5f3f00612bd2f8b416758151f0c9d10fdd2a1e /examples/OpenGLWindow/Shaders/pointsVS.h
parent0edcbd693a6f0866e9600df44a93740bad6e7cb9 (diff)
parentf263c422e22c4253a3f181ac317b42cb6dfe5ac4 (diff)
downloadbullet3-ce23bb9dce1d2fe1fb0b1f9522afec54853f462f.tar.gz
Merge pull request #4249 from erwincoumans/master
fix for debug lines / point rendering, introduced in PR #3996
Diffstat (limited to 'examples/OpenGLWindow/Shaders/pointsVS.h')
-rw-r--r--examples/OpenGLWindow/Shaders/pointsVS.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/OpenGLWindow/Shaders/pointsVS.h b/examples/OpenGLWindow/Shaders/pointsVS.h
new file mode 100644
index 000000000..dda938603
--- /dev/null
+++ b/examples/OpenGLWindow/Shaders/pointsVS.h
@@ -0,0 +1,16 @@
+//this file is autogenerated using stringify.bat (premake --stringify) in the build folder of this project
+static const char* pointsVertexShader= \
+"#version 150 \n"
+"uniform mat4 ModelViewMatrix;\n"
+"uniform mat4 ProjectionMatrix;\n"
+"uniform vec4 colour;\n"
+"in vec4 position;\n"
+"in vec4 colourIn;\n"
+"out vec4 colourV;\n"
+"void main (void)\n"
+"{\n"
+" colourV = (colour[3] == -1) ? colourIn : colour;\n"
+" gl_Position = ProjectionMatrix * ModelViewMatrix * position;\n"
+" \n"
+"}\n"
+;