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

◆ level()

void MayaFlux::Kriya::Chimera::level ( size_t  layer,
double  weight 
)

Set the weight of one layer in the buffer's push constants.

Parameters
layerLayer index.
weightWhat the shader does with it; zero or less hides the layer in the shipped shader.

Definition at line 29 of file Chimera.cpp.

30{
31 if (m_state) {
32 m_state->buffer->set_weight(static_cast<uint32_t>(layer), static_cast<float>(weight));
33 }
34}
double weight
std::shared_ptr< State > m_state
Definition Chimera.hpp:159

References m_state, and weight.