Open source Star Ruler 2 source code!

This commit is contained in:
Lucas de Vries
2018-07-17 14:15:37 +02:00
commit cc307720ff
4342 changed files with 2365070 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
varying vec3 normal, pos;
void main() {
vec3 vert = gl_Vertex.xyz;
vert += normalize(vert) * 0.02 + gl_Normal.xyz * (0.03 * (2.0 - length(vert)));
normal = (gl_NormalMatrix * gl_Normal).xyz;
vec4 tVert = gl_ModelViewProjectionMatrix * vec4(vert, 1.0);
pos = tVert.xyz;
gl_Position = tVert;
gl_FrontColor = gl_Color;
gl_BackColor = gl_Color;
}