Strange attractors with OpenCL
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

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);
}