3b1b-manim/manimlib/shaders/mandelbrot_fractal/vert.glsl

14 lines
237 B
Text
Raw Normal View History

#version 330
in vec3 point;
out vec3 xyz_coords;
uniform float scale_factor;
uniform vec3 offset;
#INSERT get_gl_Position.glsl
void main(){
xyz_coords = (point - offset) / scale_factor;
2023-01-18 13:44:41 -08:00
gl_Position = get_gl_Position(point);
}