CPU texture

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2026-01-11 11:28:48 +02:00
parent 447114e38d
commit 46c428b13a
10 changed files with 321 additions and 19 deletions

12
shaders/skybox.frag Normal file
View File

@@ -0,0 +1,12 @@
#version 450
layout (location = 0) in vec3 in_dir;
layout (location = 0) out vec4 out_frag_color;
layout (set = 0, binding = 0) uniform samplerCube environment_map;
void main() {
vec3 dir = normalize(in_dir);
out_frag_color = vec4(texture(environment_map, dir).rgb, 1.0f);
}