This removes code duplication and put an end to the old "create at request" batch creation. Also it uses the same vbo as the uv layer used for shading. Reducing VRAM usage. Also fixes the modified uv display in uv edit mode.
15 lines
190 B
GLSL
15 lines
190 B
GLSL
|
|
uniform mat4 ModelViewProjectionMatrix;
|
|
|
|
#ifdef UV_POS
|
|
in vec2 u;
|
|
# define pos u
|
|
#else
|
|
in vec2 pos;
|
|
#endif
|
|
|
|
void main()
|
|
{
|
|
gl_Position = ModelViewProjectionMatrix * vec4(pos, 0.0, 1.0);
|
|
}
|