|
Blender V5.0
|
Public Types | |
| enum | AlphaState { ALPHA_OPAQUE = 0 , ALPHA_FULLY_TRANSPARENT , ALPHA_SEMI_TRANSPARENT , ALPHA_COMPLEX_MIX } |
Public Member Functions | |
| bool | is_opaque () const |
| bool | is_fully_transparent () const |
| bool | is_transparent () const |
| bool | is_semi_transparent () const |
| bool | is_complex () const |
Static Public Member Functions | |
| static AlphaSource | alpha_source (bNodeSocket *fac, bool inverted=false) |
| static AlphaSource | opaque () |
| static AlphaSource | fully_transparent (bNodeSocket *socket=nullptr, bool inverted=false) |
| static AlphaSource | complex_alpha () |
| static AlphaSource | mix (const AlphaSource &a, const AlphaSource &b, bNodeSocket *fac) |
| static AlphaSource | add (const AlphaSource &a, const AlphaSource &b) |
Public Attributes | |
| bNodeSocket * | socket = nullptr |
| AlphaState | state |
| bool | is_transparency = false |
Represents a source of transparency inside the closure part of a material node-tree. Sources can be combined together down the tree to figure out where the source of the alpha is. If there is multiple alpha source, we consider the tree as having complex alpha and don't do the versioning.
Definition at line 103 of file versioning_420.cc.
| Enumerator | |
|---|---|
| ALPHA_OPAQUE | |
| ALPHA_FULLY_TRANSPARENT | |
| ALPHA_SEMI_TRANSPARENT | |
| ALPHA_COMPLEX_MIX | |
Definition at line 104 of file versioning_420.cc.
|
inlinestatic |
Definition at line 180 of file versioning_420.cc.
References b, complex_alpha(), is_complex(), is_semi_transparent(), and is_transparent().
Referenced by versioning_eevee_alpha_source_get().
|
inlinestatic |
Definition at line 122 of file versioning_420.cc.
References ALPHA_SEMI_TRANSPARENT.
Referenced by mix(), and versioning_eevee_alpha_source_get().
|
inlinestatic |
Definition at line 134 of file versioning_420.cc.
References ALPHA_COMPLEX_MIX.
Referenced by add(), mix(), and versioning_eevee_alpha_source_get().
|
inlinestatic |
Definition at line 130 of file versioning_420.cc.
References ALPHA_FULLY_TRANSPARENT, and socket.
Referenced by mix(), and versioning_eevee_alpha_source_get().
|
inline |
Definition at line 155 of file versioning_420.cc.
References ALPHA_COMPLEX_MIX, and state.
Referenced by add(), mix(), and versioning_eevee_material_blend_mode_settings().
|
inline |
Definition at line 143 of file versioning_420.cc.
References ALPHA_FULLY_TRANSPARENT, and state.
Referenced by mix().
|
inline |
Definition at line 139 of file versioning_420.cc.
References ALPHA_OPAQUE, and state.
Referenced by mix().
|
inline |
Definition at line 151 of file versioning_420.cc.
References ALPHA_SEMI_TRANSPARENT, and state.
|
inline |
Definition at line 147 of file versioning_420.cc.
References ALPHA_OPAQUE, and state.
|
inlinestatic |
Definition at line 161 of file versioning_420.cc.
References alpha_source(), b, complex_alpha(), fully_transparent(), is_complex(), is_fully_transparent(), is_opaque(), is_semi_transparent(), is_transparent(), and opaque().
Referenced by versioning_eevee_alpha_source_get().
|
inlinestatic |
Definition at line 126 of file versioning_420.cc.
References ALPHA_OPAQUE.
Referenced by mix(), and versioning_eevee_alpha_source_get().
| bool AlphaSource::is_transparency = false |
Definition at line 120 of file versioning_420.cc.
Referenced by versioning_eevee_material_blend_mode_settings().
| bNodeSocket* AlphaSource::socket = nullptr |
Definition at line 116 of file versioning_420.cc.
Referenced by fully_transparent(), and versioning_eevee_material_blend_mode_settings().
| AlphaState AlphaSource::state |
Definition at line 118 of file versioning_420.cc.
Referenced by is_complex(), is_fully_transparent(), is_opaque(), is_semi_transparent(), and is_transparent().