MayaFlux 0.3.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 185 of file ShaderUtils.hpp.

186 {
188 config.blend_enable = true;
189 config.src_color_factor = BlendFactor::SRC_ALPHA;
190 config.dst_color_factor = BlendFactor::ONE_MINUS_SRC_ALPHA;
191 config.src_alpha_factor = BlendFactor::ONE;
192 config.dst_alpha_factor = BlendFactor::ZERO;
193 return config;
194 }

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: