SLA slices preview - wip 3

This commit is contained in:
Enrico Turri committed 2018-11-27 14:50:57 +01:00
1 parent 21d5acfdd7
commit e6369fe548
10 files changed
+122 -25

No files matched your search

+3
View File
@@ -34,6 +34,8 @@ varying vec2 intensity;
varying vec3 delta_box_min;
varying vec3 delta_box_max;
varying float world_z;
void main()
{
// First transform the normal into camera space and normalize the result.
@@ -67,4 +69,5 @@ void main()
}
gl_Position = ftransform();
world_z = vec3(print_box.volume_world_matrix * gl_Vertex).z;
}