2020-06-04 17:17:38 -07:00
|
|
|
#version 330
|
|
|
|
|
2021-01-18 16:39:29 -08:00
|
|
|
#INSERT camera_uniform_declarations.glsl
|
2020-06-04 17:17:38 -07:00
|
|
|
|
|
|
|
in vec3 point;
|
2020-06-05 11:12:52 -07:00
|
|
|
in vec3 du_point;
|
|
|
|
in vec3 dv_point;
|
2020-06-04 17:17:38 -07:00
|
|
|
in vec2 im_coords;
|
|
|
|
in float opacity;
|
|
|
|
|
|
|
|
out vec3 xyz_coords;
|
|
|
|
out vec3 v_normal;
|
|
|
|
out vec2 v_im_coords;
|
|
|
|
out float v_opacity;
|
|
|
|
|
|
|
|
#INSERT position_point_into_frame.glsl
|
|
|
|
#INSERT get_gl_Position.glsl
|
2020-06-05 11:12:52 -07:00
|
|
|
#INSERT get_rotated_surface_unit_normal_vector.glsl
|
2020-06-04 17:17:38 -07:00
|
|
|
|
|
|
|
void main(){
|
|
|
|
xyz_coords = position_point_into_frame(point);
|
2020-06-05 11:12:52 -07:00
|
|
|
v_normal = get_rotated_surface_unit_normal_vector(point, du_point, dv_point);
|
2020-06-04 17:17:38 -07:00
|
|
|
v_im_coords = im_coords;
|
|
|
|
v_opacity = opacity;
|
|
|
|
gl_Position = get_gl_Position(xyz_coords);
|
|
|
|
}
|