Поправка порядка рендера чанков

This commit is contained in:
2025-08-27 22:54:47 +06:00
parent 388b59e9bf
commit bd1dec04f2
12 changed files with 113 additions and 48 deletions

View File

@@ -1,4 +1,4 @@
#version 450
#version 460
layout (triangles) in;
layout (triangle_strip, max_vertices = 3) out;

Binary file not shown.

View File

@@ -1,4 +1,4 @@
#version 450
#version 460
layout(location = 0) in uvec3 Vertex;

Binary file not shown.

View File

@@ -1,4 +1,6 @@
#version 450
#version 460
// layout(early_fragment_tests) in;
layout(location = 0) in FragmentObj {
vec3 GeoPos; // Реальная позиция в мире

View File

@@ -1,4 +1,4 @@
#version 450
#version 460
layout(location = 0) in FragmentObj {
vec3 GeoPos; // Реальная позиция в мире
@@ -20,5 +20,5 @@ layout(set = 1, binding = 1) readonly buffer LightMapLayoutObj {
} LightMapLayout;
void main() {
Frame = vec4(1);
}
Frame = vec4(Fragment.GeoPos, 1);
}