Expand description
Functions§
- atlas_
texture - RGBA8-UNORM storage texture (compute writes, material samples). Used for the
Phase-4 per-chunk colour/normal detail atlases:
STORAGE_BITso the bake compute pass can write it,SAMPLING_BITsoterrain_chunk.gdshadercantexelFetchit. Normals are encoded*0.5+0.5into [0,1] to fit unorm. - attribute_
texture - RGBA16F storage texture (compute writes, material samples).
- compute_
pipeline - Compute shader + pipeline from SPIR-V bytes produced by
build.rs. - compute_
pipeline_ from_ glsl - Compute shader + pipeline from GLSL source compiled at runtime by Godot’s
own shader compiler (no
slangc, nothing extra shipped). Used for the user-authored custom-surface terrain (crate::custom_surface): a compile error is logged with Godot’s message and returnsNoneso the caller can fall back to the built-in path instead of crashing. - position_
texture - RGBA32F storage texture (compute writes world positions, material samples).
One texel per vertex: the surface material reads VERTEX from here because a
spatial shader cannot sample the
vertsstorage buffer the readback uses. - storage_
buffer - Storage buffer pre-filled with
bytes. - storage_
buffer_ empty - Uninitialized storage buffer of
sizebytes. - uniform