diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2022-12-03 02:18:25 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-12-03 02:18:25 -0700 |
| commit | ecf90db5ffada1890e759c5a7e91c13ec15a02bd (patch) | |
| tree | bb102d9d8aeeecdb6d36b63a5b5ec0623d2d8f4d /shaders/snow.geom | |
| parent | d7fb5d4551a93b4756db62f494b761c0cef2fda7 (diff) | |
| parent | a60702dd882768e7f5b7fcadd39253ac8de9114f (diff) | |
| download | terralloc-ecf90db5ffada1890e759c5a7e91c13ec15a02bd.tar.gz terralloc-ecf90db5ffada1890e759c5a7e91c13ec15a02bd.tar.bz2 terralloc-ecf90db5ffada1890e759c5a7e91c13ec15a02bd.zip | |
Merge remote-tracking branch 'origin/snow'
Diffstat (limited to 'shaders/snow.geom')
| -rw-r--r-- | shaders/snow.geom | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/shaders/snow.geom b/shaders/snow.geom new file mode 100644 index 0000000..116a59d --- /dev/null +++ b/shaders/snow.geom @@ -0,0 +1,26 @@ +#version 150 +layout(points) in; +layout(triangle_strip, max_vertices=28) out; + +out float rad ; + +void vertex( vec3 pos ) { + gl_Position = gl_in[0].gl_Position + vec4(pos,0.0) ; + EmitVertex() ; +} + +void main( ) { + float r = 0.008 ; + float th = 0.00 ; + for( ; th < 6.3 ; th += 0.5 ) { + rad = 3 ; + vertex( vec3(r*sin(th),r*cos(th),0.0) ) ; + rad = 0.0 ; + vertex( vec3(0.0,0.0,0.0) ) ; + } + th = 0 ; + rad = 3 ; + vertex( vec3(r*sin(th),r*cos(th),0.0) ) ; + // vertex( vector[0] ) ; + EndPrimitive(); +} |