MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ RaymarchBuffer()

MayaFlux::Buffers::RaymarchBuffer::RaymarchBuffer ( Kinesis::Lattice3D  lattice,
RaymarchProcessor::FieldSource  source,
size_t  field_bytes 
)

Construct proxy geometry over a lattice.

Parameters
latticeExtent the box spans and the field is stored over.
sourceCallable resolving the field handle each cycle.
field_bytesByte size of one slot of that field.

Definition at line 10 of file RaymarchBuffer.cpp.

15 (lattice.bounds.min + lattice.bounds.max) * 0.5F,
16 (lattice.bounds.max - lattice.bounds.min) * 0.5F))
17 , m_lattice(lattice)
18 , m_source(std::move(source))
19 , m_field_bytes(field_bytes)
20{
21}
MeshBuffer(Kakshya::MeshData data)
Construct from an owning MeshData.
RaymarchProcessor::FieldSource m_source
Kakshya::MeshData generate_box(const glm::vec3 &center, const glm::vec3 &half_extents, uint32_t subdivisions)
Generate a solid box as an indexed TRIANGLE_LIST mesh.