|
Blender V4.3
|
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 617 of file versioning_400.cc.
| Enumerator | |
|---|---|
| ALPHA_OPAQUE | |
| ALPHA_FULLY_TRANSPARENT | |
| ALPHA_SEMI_TRANSPARENT | |
| ALPHA_COMPLEX_MIX | |
Definition at line 618 of file versioning_400.cc.
|
inlinestatic |
Definition at line 694 of file versioning_400.cc.
References b, and complex_alpha().
Referenced by versioning_eevee_alpha_source_get().
|
inlinestatic |
Definition at line 636 of file versioning_400.cc.
References ALPHA_SEMI_TRANSPARENT.
Referenced by mix(), and versioning_eevee_alpha_source_get().
|
inlinestatic |
Definition at line 648 of file versioning_400.cc.
References ALPHA_COMPLEX_MIX.
Referenced by add(), mix(), and versioning_eevee_alpha_source_get().
|
inlinestatic |
Definition at line 644 of file versioning_400.cc.
References ALPHA_FULLY_TRANSPARENT, and socket.
Referenced by mix(), and versioning_eevee_alpha_source_get().
|
inline |
Definition at line 669 of file versioning_400.cc.
References ALPHA_COMPLEX_MIX, and state.
|
inline |
Definition at line 657 of file versioning_400.cc.
References ALPHA_FULLY_TRANSPARENT, and state.
|
inline |
Definition at line 653 of file versioning_400.cc.
References ALPHA_OPAQUE, and state.
|
inline |
Definition at line 665 of file versioning_400.cc.
References ALPHA_SEMI_TRANSPARENT, and state.
|
inline |
Definition at line 661 of file versioning_400.cc.
References ALPHA_OPAQUE, and state.
|
inlinestatic |
Definition at line 675 of file versioning_400.cc.
References alpha_source(), b, complex_alpha(), fully_transparent(), and opaque().
Referenced by versioning_eevee_alpha_source_get().
|
inlinestatic |
Definition at line 640 of file versioning_400.cc.
References ALPHA_OPAQUE.
Referenced by mix(), and versioning_eevee_alpha_source_get().
| bool AlphaSource::is_transparency = false |
Definition at line 634 of file versioning_400.cc.
| bNodeSocket* AlphaSource::socket = nullptr |
Definition at line 630 of file versioning_400.cc.
Referenced by fully_transparent().
| AlphaState AlphaSource::state |
Definition at line 632 of file versioning_400.cc.
Referenced by is_complex(), is_fully_transparent(), is_opaque(), is_semi_transparent(), and is_transparent().