8939687f6a
Load vertex positions for layouts in rectangle class. This will be used for proper rotation adjusting. Add latest muunt editor files. Add somewhat functional mk8 camera bin editor. Points can be moved around. The map orientation determines the position of the icons to map over the model. Fix window content UV map for layouts. Add 2D KCL renderer for top down KCL preview for both muunt and camera editors.
27 lines
427 B
GLSL
27 lines
427 B
GLSL
#version 330
|
|
|
|
const int MY_ARRAY_SIZE = 200;
|
|
|
|
in vec3 vPosition;
|
|
in vec3 vNormal;
|
|
in vec3 vColor;
|
|
|
|
out vec3 normal;
|
|
out vec3 color;
|
|
out vec3 position;
|
|
|
|
uniform mat4 mtxCam;
|
|
uniform mat4 mtxMdl;
|
|
uniform mat4 previewScale;
|
|
|
|
void main()
|
|
{
|
|
normal = vNormal;
|
|
color = vColor;
|
|
position = vPosition;
|
|
|
|
gl_Position = mtxCam * mtxMdl * vec4(vPosition.xyz, 1.0);
|
|
|
|
vec3 distance = (vPosition.xyz + vec3(5, 5, 5))/2;
|
|
|
|
} |