projects
/
faros-demo
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
clouds and better light beam
[faros-demo]
/
sdr
/
curve_top.v.glsl
1
#define PI 3.141592653589793
2
void main()
3
{
4
float s = 0.55 * cos(gl_Vertex.z * PI / 2.0 + PI / 2.0) + 1.02;
5
vec4 pos = gl_Vertex * vec4(s, s, 1.0, 1.0);
6
7
gl_Position = gl_ModelViewProjectionMatrix * pos;
8
gl_FrontColor = gl_Color;
9
}