dust3d/thirdparty/instant-meshes/instant-meshes-dust3d/resources/shader_singularity.vert

22 lines
302 B
GLSL

#version 330
in vec3 position;
in vec3 normal;
in vec3 dir1;
in vec3 dir2;
in vec3 color;
out vData {
vec3 color;
vec3 normal;
vec3 dir1, dir2;
} vertex;
void main() {
gl_Position = vec4(position, 1.0);
vertex.normal = normal;
vertex.color = color;
vertex.dir1 = dir1;
vertex.dir2 = dir2;
}