pre-setup

This commit is contained in:
mcrcortex
2025-09-12 09:45:46 +10:00
parent 9f4282e37b
commit 7605ebf48d
5 changed files with 19 additions and 7 deletions

View File

@@ -1,8 +1,9 @@
#version 460 core
#extension GL_ARB_gpu_shader_int64 : enable
#define VISIBILITY_ACCESS
#define VISIBILITY_BUFFER_BINDING 2
#import <voxy:lod/gl46/bindings.glsl>
layout(binding = VISIBILITY_BUFFER_BINDING, std430) restrict buffer VisibilityBuffer {
uint visibilityData[];
};
layout(early_fragment_tests) in;
flat in uint id;
@@ -11,5 +12,5 @@ flat in uint value;
void main() {
visibilityData[id] = value;
//colour = vec4(float(id&7u)/7, float((id>>3)&7u)/7, float((id>>6)&7u)/7, 1);
//colour = vec4(float(id&7u)/7, float((id>>3)&7u)/7, float((id>>6)&7u)/7, 0);
}