unreal.DecalBlendMode
¶
- class unreal.DecalBlendMode¶
Bases:
unreal.EnumBase
Defines how the GBuffer channels are getting manipulated by a decal material pass. Actual index is used to control shader parameters so don’t change order.
C++ Source:
Module: Engine
File: Material.h
- DBM_ALPHA_COMPOSITE¶
Blend with existing scene color. Decal color is already pre-multiplied by alpha.
- Type
15
- DBM_AMBIENT_OCCLUSION¶
Ambient occlusion.
- Type
16
- DBM_D_BUFFER_COLOR¶
Put into DBuffer to work for baked lighting as well.
- Type
5
- DBM_D_BUFFER_COLOR_NORMAL¶
Put into DBuffer to work for baked lighting as well (becomes DBM_DBuffer_Color if normal is not hooked up).
- Type
6
- DBM_D_BUFFER_COLOR_NORMAL_ROUGHNESS¶
Put into DBuffer to work for baked lighting as well (becomes DBM_TranslucentNormal if normal is not hooked up).
- Type
4
- DBM_D_BUFFER_COLOR_ROUGHNESS¶
Put into DBuffer to work for baked lighting as well.
- Type
7
- DBM_D_BUFFER_NORMAL¶
Put into DBuffer to work for baked lighting as well.
- Type
8
- DBM_D_BUFFER_NORMAL_ROUGHNESS¶
Put into DBuffer to work for baked lighting as well (becomes DBM_DBuffer_Roughness if normal is not hooked up).
- Type
9
- DBM_D_BUFFER_ROUGHNESS¶
Put into DBuffer to work for baked lighting as well.
- Type
10
- DBM_EMISSIVE¶
Additive emissive only.
- Type
3
- DBM_NORMAL¶
Only blend normal, updating the GBuffer, does not work for baked lighting.
- Type
2
- DBM_STAIN¶
Modulate BaseColor, blend rest, updating the GBuffer, does not work for baked lighting. Does not work in DBuffer mode (approximated as Translucent).
- Type
1
- DBM_TRANSLUCENT¶
Blend full material, updating the GBuffer, does not work for baked lighting.
- Type
0
- DBM_VOLUMETRIC_DISTANCE_FUNCTION¶
Can be costly, no shadow casting but receiving, no per pixel normal yet, no quality settings yet
- Type
14
- Type
Output signed distance in Opacity depending on LightVector. Note