aboutsummaryrefslogtreecommitdiff
path: root/src/shader/code/geometry.glsl
diff options
context:
space:
mode:
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();
}
)";