Files
armorpaint/compiled/Glsl/Material_voxel.vert.glsl
T
2019-06-06 12:54:44 +02:00

10 lines
202 B
GLSL

#version 450
#include "../Shaders/compiled.inc"
in vec4 pos;
in vec2 nor;
out vec3 voxpositionGeom;
uniform mat4 W;
void main() {
voxpositionGeom = vec3(W * vec4(pos.xyz, 1.0)) / voxelgiHalfExtents;
}