aboutsummaryrefslogtreecommitdiff
path: root/src/shader/code/geometry.glsl
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-12-17 19:09:25 +0100
committerAdrian Kummerlaender2018-12-17 19:09:25 +0100
commitede5386d53a453cb56c9b1c80de0a80322ddc6f1 (patch)
treeab9b8b9e0659fa7c9da1bc35d9f943b072de843e /src/shader/code/geometry.glsl
parent85ad73153d1193e51e77ca825416df3794443fa4 (diff)
downloadcompustream-ede5386d53a453cb56c9b1c80de0a80322ddc6f1.tar
compustream-ede5386d53a453cb56c9b1c80de0a80322ddc6f1.tar.gz
compustream-ede5386d53a453cb56c9b1c80de0a80322ddc6f1.tar.bz2
compustream-ede5386d53a453cb56c9b1c80de0a80322ddc6f1.tar.lz
compustream-ede5386d53a453cb56c9b1c80de0a80322ddc6f1.tar.xz
compustream-ede5386d53a453cb56c9b1c80de0a80322ddc6f1.tar.zst
compustream-ede5386d53a453cb56c9b1c80de0a80322ddc6f1.zip
Try out velocity norm color mapping
Diffstat (limited to 'src/shader/code/geometry.glsl')
-rw-r--r--src/shader/code/geometry.glsl10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/shader/code/geometry.glsl b/src/shader/code/geometry.glsl
index 6ecfc99..e74d52f 100644
--- a/src/shader/code/geometry.glsl
+++ b/src/shader/code/geometry.glsl
@@ -17,7 +17,7 @@ vec4 project(vec4 v) {
}
void emitSquareAt(vec4 position) {
- const float size = 0.2;
+ const float size = 0.5;
gl_Position = project(position + vec4(-size, -size, 0.0, 0.0));
EmitVertex();
@@ -30,10 +30,8 @@ void emitSquareAt(vec4 position) {
}
void main() {
- if ( gl_in[0].gl_Position.xyz != vec3(0.,0.,0.) ) {
- color = gs_in[0].color;
- emitSquareAt(gl_in[0].gl_Position);
- EndPrimitive();
- }
+ color = gs_in[0].color;
+ emitSquareAt(gl_in[0].gl_Position);
+ EndPrimitive();
}
)";