mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
14 lines
230 B
GLSL
14 lines
230 B
GLSL
#version 330 core
|
|
|
|
layout (location = 0) in vec3 aPos;
|
|
|
|
uniform mat4 model, lightMat;
|
|
uniform bool point;
|
|
|
|
void main(){
|
|
if(point)
|
|
gl_Position = model * vec4(aPos, 1);
|
|
else
|
|
gl_Position = lightMat * model * vec4(aPos, 1);
|
|
}
|