|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::TextureArrayBuffer::set_weight | ( | uint32_t | layer, |
| float | weight | ||
| ) |
Set the weight of one layer.
What a weight does is up to the shader. In the shipped shader a weight of zero or less hides the layer. Layers past WEIGHT_SLOTS have no weight.
| layer | Layer index. |
| weight | Weight passed to the shader. |
Definition at line 259 of file TextureArrayBuffer.cpp.
References flush_push(), m_layers, m_push, weight, and MayaFlux::Buffers::TextureArrayBuffer::Push::weights.
Here is the call graph for this function: