This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/draw/modes/shaders/paint_texture_vert.glsl
Campbell Barton f21c235c6f DwM: texture paint support & mask mode
Uses workaround so material slots are used when neither blender-internal
or cycles are enabled.
2017-05-23 17:40:48 +10:00

16 lines
183 B
GLSL

uniform mat4 ModelViewProjectionMatrix;
in vec2 uv;
in vec3 pos;
out vec2 uv_interp;
void main()
{
gl_Position = ModelViewProjectionMatrix * vec4(pos, 1.0);
uv_interp = uv;
}