mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
This reverts commit 8226a9479ce8ab45bed5bc6acbba63eaaf0e6330. point light shadows fixed spotlights geometry shaders
15 lines
229 B
GLSL
15 lines
229 B
GLSL
#version 330 core
|
|
|
|
layout (location=0) in vec3 aPos;
|
|
|
|
uniform mat4 model;
|
|
uniform mat4 lightMat;
|
|
uniform bool point;
|
|
|
|
void main(){
|
|
if(point)
|
|
gl_Position=model*vec4(aPos,1);
|
|
else
|
|
gl_Position=lightMat*model*vec4(aPos,1);
|
|
}
|