Add skybox rendering support

This commit is contained in:
reo 2025-07-15 01:27:50 +03:00
parent f6a9d18c5c
commit f943e4c945
4 changed files with 93 additions and 3 deletions

View file

@ -0,0 +1,15 @@
#version 330 core
in vec3 position;
uniform mat4 view;
uniform mat4 projection;
out vec3 direction;
void main() {
direction = position;
vec4 pos = projection * view * vec4(position, 1.0);
gl_Position = pos.xyww;
}