mirror of
https://github.com/barkeser2002/bullet3.git
synced 2026-11-24 10:56:15 +03:00
18 lines
277 B
GLSL
18 lines
277 B
GLSL
#version 150
|
|
|
|
uniform mat4 ModelViewMatrix;
|
|
uniform mat4 ProjectionMatrix;
|
|
uniform vec4 colour;
|
|
|
|
in vec4 position;
|
|
|
|
|
|
out vec4 colourV;
|
|
|
|
void main (void)
|
|
{
|
|
colourV = (colour[3] == -1) ? colourIn : colour;
|
|
gl_Position = ProjectionMatrix * ModelViewMatrix * position;
|
|
|
|
}
|