Initial commit.

This commit is contained in:
2025-03-15 09:23:47 -04:00
commit 1dbc88cb7b
85 changed files with 526246 additions and 0 deletions

BIN
skybox/back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

BIN
skybox/bottom.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

BIN
skybox/front.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 MiB

BIN
skybox/left.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

BIN
skybox/right.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

9
skybox/skybox.frag Normal file
View File

@@ -0,0 +1,9 @@
#version 330
uniform samplerCube uTexture;
varying vec3 vTexCoord;
void main()
{
gl_FragColor = texture(uTexture, vTexCoord);
}

15
skybox/skybox.vert Normal file
View File

@@ -0,0 +1,15 @@
#version 330
layout(location = 0) in vec3 aPosition;
out vec3 vTexCoord;
uniform mat4 uProjectionMatrix;
uniform mat4 uViewMatrix;
void main()
{
// Strip translation column from camera's 4x4 matrix
mat4 view = mat4(mat3(uViewMatrix));
gl_Position = uProjectionMatrix * view * vec4(aPosition, 1.0);
vTexCoord = aPosition;
}

BIN
skybox/top.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB