First working animations, but lots of bugs and refactoring needed.

This commit is contained in:
Zed A. Shaw 2026-10-07 12:11:15 -04:00
parent 8b41591360
commit a1c8208b47
158 changed files with 17271 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#version 330 core
out vec4 FragColor;
in vec3 Normal;
in vec3 FragPos;
in vec2 TexCoords;
uniform vec3 cameraPos;
uniform samplerCube skybox;
void main()
{
float ratio = 1.0/1.52;
vec3 I = normalize(FragPos - cameraPos);
vec3 R = refract(I, normalize(Normal), ratio);
FragColor = vec4(texture(skybox, R).rgb, 1.0);
}