The '''PBS_ColorMaskMetallic''' Component is used to allow for a metallic setup of a color-able material that allows for 4 distinct colors to be used separately or mixed in different areas on the surface.
The '''PBS_ColorMaskMetallic''' Component is used to allow for a metallic setup of a color-able material that allows for 4 distinct colors to be used separately or mixed in different areas on the surface.
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
Line 17:
Line 13:
|ColorMaskScale|Float2| The uv scale of color masks.
|ColorMaskScale|Float2| The uv scale of color masks.
|ColorMaskOffset|Float2| The uv offset of color masks.
|ColorMaskOffset|Float2| The uv offset of color masks.
|ColorMask|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv6=true| [[ColorMaskMaps]] for albedo color.
|ColorMask|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv6=true|The [[color mask]] for the material.
|AlbedoColor0|ColorX| The color to use for spots where R is on <code>ColorMask</code>
|AlbedoColor0|ColorX| The color to use for spots where R is on <code>ColorMask</code>
|AlbedoColor1|ColorX| The color to use for spots where G is on <code>ColorMask</code>
|AlbedoColor1|ColorX| The color to use for spots where G is on <code>ColorMask</code>
|AlbedoColor2|ColorX| The color to use for spots where B is on <code>ColorMask</code>
|AlbedoColor2|ColorX| The color to use for spots where B is on <code>ColorMask</code>
|AlbedoColor3|ColorX| The color to use for spots where A is on <code>ColorMask</code>
|AlbedoColor3|ColorX| The color to use for spots where A is on <code>ColorMask</code>
|AlbedoTexture|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv11=true| [[ColorMaskMaps]] for emission or glow color.
|AlbedoTexture|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv11=true|The texture to use on the surface.
|EmissiveColor0|ColorX| The color to use for spots where R is on <code>AlbedoTexture</code>
|EmissiveColor0|ColorX| The color to use for spots where R is on <code>AlbedoTexture</code>
|EmissiveColor1|ColorX| The color to use for spots where G is on <code>AlbedoTexture</code>
|EmissiveColor1|ColorX| The color to use for spots where G is on <code>AlbedoTexture</code>
Line 33:
Line 29:
|Transparent|Bool| Whether this should render transparent (BROKEN Right now)
|Transparent|Bool| Whether this should render transparent (BROKEN Right now)
|ForceZWrite|Bool| Whether to enforce writing to the Z-buffer.
|ForceZWrite|Bool| Whether to enforce writing to the Z-buffer.
Used in creations where simple color masks can do for colorable characters. For Example, Avalis, and Eyes.
<!--T:4-->
The <code>ColorMask</code> texture is a [[color mask]] that gets mapped to the four albedo/emissive channels to change individual tints for certain parts of the material. Other fields work as described on the [[Component:PBS_Metallic|PBS_Metallic]] material.
== Examples ==
== Examples ==
{{stub}}
<!--T:5-->
== See Also ==
== See Also ==
* [[ColorMaskMaps|ColorMaskMaps]]
* [[ColorMaskMaps|ColorMaskMaps]]
* [[Component:PBS_ColorMaskSpecular]]
* [[Component:PBS_ColorMaskSpecular]]
</translate>
[[Category:Components{{#translation:}}|PBS Color Mask Metallic]]
[[Category:Components{{#translation:}}|PBS Color Mask Metallic]]
[[Category:Components:Assets:Materials:PBS{{#translation:}}|PBS Color Mask Metallic]]
[[Category:Components:Assets:Materials:PBS{{#translation:}}|PBS Color Mask Metallic]]
[[Category:Materials:PBS{{#translation:}}|PBS Color Mask Metallic]]
[[Category:Materials:PBS{{#translation:}}|PBS Color Mask Metallic]]
[[Category:Materials{{#translation:}}|PBS Color Mask Metallic]]
[[Category:Materials{{#translation:}}|PBS Color Mask Metallic]]
Revision as of 05:37, 12 June 2025
Component image
PBS Color Mask Metallic component as seen in the Scene Inspector
The PBS_ColorMaskMetallic Component is used to allow for a metallic setup of a color-able material that allows for 4 distinct colors to be used separately or mixed in different areas on the surface.
If true, integrating this asset (e.g. processing procedural assets) gets higher priority than assets with this flag off. An example is user laser procedural meshes.
The ColorMask texture is a color mask that gets mapped to the four albedo/emissive channels to change individual tints for certain parts of the material. Other fields work as described on the PBS_Metallic material.