Files
armorpaint/Shaders/voxel_glsl/armdefault_voxel.vert.glsl
T
2019-08-22 12:05:03 +02:00

10 lines
200 B
GLSL

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