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

12 lines
167 B
GLSL

#version 330
uniform mat4 mvp;
uniform float scale;
in vec3 uv;
in vec3 normal;
void main() {
gl_Position = mvp*vec4(uv + normal * (scale * (1.0 / 10.0)), 1.0);
}