I am the biggest dumbass to ever exist (forgets the most important thing with occlusion culling)

This commit is contained in:
mcrcortex
2024-01-20 15:03:10 +10:00
parent df6c56d62d
commit 17cac4fb26
2 changed files with 4 additions and 4 deletions

View File

@@ -2,11 +2,13 @@
#extension GL_ARB_gpu_shader_int64 : enable
#define VISIBILITY_ACCESS writeonly
#import <zenith:lod/gl46/bindings.glsl>
layout(early_fragment_tests) in;
flat in uint id;
flat in uint value;
out vec4 colour;
//out vec4 colour;
void main() {
visibilityData[id] = value;
colour = vec4(float(id&7)/7, float((id>>3)&7)/7, float((id>>6)&7)/7, 1);
//colour = vec4(float(id&7)/7, float((id>>3)&7)/7, float((id>>6)&7)/7, 1);
}