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

◆ alpha_blend()

static BlendAttachmentConfig MayaFlux::Portal::Graphics::BlendAttachmentConfig::alpha_blend ( )
inlinestatic

Create standard alpha blending configuration.

Definition at line 269 of file ShaderUtils.hpp.

270 {
272 config.blend_enable = true;
273 config.src_color_factor = BlendFactor::SRC_ALPHA;
274 config.dst_color_factor = BlendFactor::ONE_MINUS_SRC_ALPHA;
275 config.src_alpha_factor = BlendFactor::ONE;
276 config.dst_alpha_factor = BlendFactor::ZERO;
277 return config;
278 }

References blend_enable, dst_alpha_factor, dst_color_factor, MayaFlux::Portal::Graphics::ONE, MayaFlux::Portal::Graphics::ONE_MINUS_SRC_ALPHA, MayaFlux::Portal::Graphics::SRC_ALPHA, src_alpha_factor, src_color_factor, and MayaFlux::Portal::Graphics::ZERO.

Referenced by MayaFlux::Buffers::RenderProcessor::enable_alpha_blending().

+ Here is the caller graph for this function: