You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
236 B
13 lines
236 B
#version 330
|
|
|
|
in vec4 position;
|
|
uniform mat4 modelmatrix;
|
|
out float mx;
|
|
|
|
void main(){
|
|
gl_Position = 0.04*modelmatrix*(position - vec4(0.0, 0.0, 25.0, 0.0));
|
|
|
|
// reset depth
|
|
gl_Position.zw = vec2(1.0);
|
|
mx = cos(0.1337*position.z);
|
|
}
|
|
|