procedural-3d-engine/data/shaders/glsl/raytracingtextures/_bufferreferences.glsl
Sascha Willems 8f1d351489 Started working on a ray tracing texture mapping Sample
Uses any hit for transparency, and BDA for accessing vertex and index buffers
2023-04-07 14:13:04 +02:00

7 lines
No EOL
233 B
GLSL

layout(push_constant) uniform BufferReferences {
uint64_t vertices;
uint64_t indices;
} bufferReferences;
layout(buffer_reference, scalar) buffer Vertices {vec4 v[]; };
layout(buffer_reference, scalar) buffer Indices {uint i[]; };