|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
View and projection matrices as a named push constant slot. More...
#include <ViewTransform.hpp>
Collaboration diagram for MayaFlux::Kinesis::ViewTransform:Public Attributes | |
| glm::mat4 | view { 1.0F } |
| glm::mat4 | projection { 1.0F } |
View and projection matrices as a named push constant slot.
Two glm::mat4 fields (128 bytes total) that map directly to a vertex shader push constant block. No Camera class, no scene graph, no transform hierarchy. The third dimension is not special: it is a push constant slot that the user may optionally supply, which enables depth testing and provides view/projection matrices to the vertex shader.
Construction uses free functions (look_at, perspective, ortho) or direct assignment. Both matrices can be driven by signal graph node outputs for audio-reactive or algorithmically controlled viewpoints.
Definition at line 22 of file ViewTransform.hpp.