GameObjects

Began to add GameObjects, starting with the player.
This commit is contained in:
onTheZero
2025-08-13 00:59:03 -04:00
parent 237272c17b
commit 4bf6b02255
37 changed files with 2640 additions and 222 deletions

15
point_shadow_depth.frag Normal file
View File

@@ -0,0 +1,15 @@
#version 330
in vec4 FragPosition;
uniform vec3 lightPosition;
uniform float farPlane;
void main()
{
float lightDistance = length(FragPosition.xyz - lightPosition);
lightDistance = lightDistance / farPlane;
gl_FragDepth = lightDistance;
}