Component:PBS ColorSplatSpecular: Difference between revisions

From Resonite Wiki
Automated: update 'HighPriorityIntegration' description
Automated: update '_shader' description,'ColorMap' description,'ColorMapScale' description,'ColorMapOffset' description,'PackedHeightMap' description,'HeightTransitionRange' description,'TextureScale' description,'TextureOffset' description,'AlbedoColor0' description,'AlbedoColor1' description,'AlbedoColor2' description,'AlbedoColor3' description,'AlbedoTexture0' description,'AlbedoTexture1' description,'AlbedoTexture2' description,'AlbedoTexture3' description,'EmissiveColor0' description,'Em...
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=PBS_ColorSplatSpecularComponent.png
|Image=PBS_ColorSplatSpecularComponent.png
Line 12: Line 11:
* Supports height map blending too for sharper, more defined look
* Supports height map blending too for sharper, more defined look
* Is useful for terrains
* Is useful for terrains
See also: [[Color Splat Materials]]




Line 18: Line 19:
{{Table ComponentFields
{{Table ComponentFields
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}}
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}}
|_shader|{{RootFieldType|AssetRef`1|[[Type:Shader|Shader]]}}|TypeAdv1=true|
|_shader|{{RootFieldType|AssetRef`1|[[Type:Shader|Shader]]}}|TypeAdv1=true|{{Template:Material__shader}}
|MultiValue|Bool|
|MultiValue|Bool| {{Template:Material_MultiValue_Desc}}
|ColorMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv3=true|
|ColorMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv3=true|{{Template:Material_ColorMap}}
|ColorMapScale|Float2|
|ColorMapScale|Float2|{{Template:Material_ColorMapScale}}
|ColorMapOffset|Float2|
|ColorMapOffset|Float2|{{Template:Material_ColorMapOffset}}
|PackedHeightMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv6=true|
|PackedHeightMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv6=true|{{Template:Material_PackedHeightMap}}
|HeightTransitionRange|Float|
|HeightTransitionRange|Float|{{Template:Material_HeightTransitionRange}}
|TextureScale|Float2|
|TextureScale|Float2|{{Template:Material_TextureScale}}
|TextureOffset|Float2|
|TextureOffset|Float2|{{Template:Material_TextureOffset}}
|AlbedoColor0|ColorX|
|AlbedoColor0|ColorX|{{Template:Material_AlbedoColor0}}
|AlbedoColor1|ColorX|
|AlbedoColor1|ColorX|{{Template:Material_AlbedoColor1}}
|AlbedoColor2|ColorX|
|AlbedoColor2|ColorX|{{Template:Material_AlbedoColor2}}
|AlbedoColor3|ColorX|
|AlbedoColor3|ColorX|{{Template:Material_AlbedoColor3}}
|AlbedoTexture0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv14=true|
|AlbedoTexture0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv14=true|{{Template:Material_AlbedoTexture0}}
|AlbedoTexture1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv15=true|
|AlbedoTexture1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv15=true|{{Template:Material_AlbedoTexture1}}
|AlbedoTexture2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv16=true|
|AlbedoTexture2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv16=true|{{Template:Material_AlbedoTexture2}}
|AlbedoTexture3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv17=true|
|AlbedoTexture3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv17=true|{{Template:Material_AlbedoTexture3}}
|EmissiveColor0|ColorX|
|EmissiveColor0|ColorX|{{Template:Material_EmissiveColor0}}
|EmissiveColor1|ColorX|
|EmissiveColor1|ColorX|{{Template:Material_EmissiveColor1}}
|EmissiveColor2|ColorX|
|EmissiveColor2|ColorX|{{Template:Material_EmissiveColor2}}
|EmissiveColor3|ColorX|
|EmissiveColor3|ColorX|{{Template:Material_EmissiveColor3}}
|EmissiveMap0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv22=true|
|EmissiveMap0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv22=true|{{Template:Material_EmissiveMap0}}
|EmissiveMap1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv23=true|
|EmissiveMap1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv23=true|{{Template:Material_EmissiveMap1}}
|EmissiveMap2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv24=true|
|EmissiveMap2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv24=true|{{Template:Material_EmissiveMap2}}
|EmissiveMap3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv25=true|
|EmissiveMap3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv25=true|{{Template:Material_EmissiveMap3}}
|PackedEmissionMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv26=true|
|PackedEmissionMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv26=true|{{Template:Material_PackedEmissionMap}}
|PackedNormalMap01|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv27=true|
|PackedNormalMap01|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv27=true|{{Template:Material_PackedNormalMap01}}
|PackedNormalMap23|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv28=true|
|PackedNormalMap23|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv28=true|{{Template:Material_PackedNormalMap23}}
|NormalScale0|Float|
|NormalScale0|Float|{{Template:Material_NormalScale0}}
|NormalScale1|Float|
|NormalScale1|Float|{{Template:Material_NormalScale1}}
|NormalScale2|Float|
|NormalScale2|Float|{{Template:Material_NormalScale2}}
|NormalScale3|Float|
|NormalScale3|Float|{{Template:Material_NormalScale3}}
|AlphaClip|Float|
|AlphaClip|Float| {{Template:Material_AlphaCutoff_Desc}}
|OffsetFactor|Float|
|OffsetFactor|Float|{{Template:Material_OffsetFactor_Desc}}
|OffsetUnits|Float|
|OffsetUnits|Float|{{Template:Material_OffsetUnits_Desc}}
|RenderQueue|Int|
|RenderQueue|Int|{{Template:Material_RenderQueue_Desc}}
|SpecularColor0|ColorX|
|SpecularColor0|ColorX|{{Template:Material_SpecularColor0}}
|SpecularColor1|ColorX|
|SpecularColor1|ColorX|{{Template:Material_SpecularColor1}}
|SpecularColor2|ColorX|
|SpecularColor2|ColorX|{{Template:Material_SpecularColor2}}
|SpecularColor3|ColorX|
|SpecularColor3|ColorX|{{Template:Material_SpecularColor3}}
|SpecularMap0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv41=true|
|SpecularMap0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv41=true|{{Template:Material_SpecularMap0}}
|SpecularMap1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv42=true|
|SpecularMap1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv42=true|{{Template:Material_SpecularMap1}}
|SpecularMap2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv43=true|
|SpecularMap2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv43=true|{{Template:Material_SpecularMap2}}
|SpecularMap3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv44=true|
|SpecularMap3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv44=true|{{Template:Material_SpecularMap3}}
}}
}}


Line 67: Line 68:
== Usage ==
== Usage ==
For comprehensive guides see [[Color Splat Materials]].
For comprehensive guides see [[Color Splat Materials]].
== Packed Textures Channel Mappings ==
'''PackedEmissionMap''' is greyscale and uses '''EmissiveColor0-3''' Colors.
'''EmissiveMap0-3''' can be used for RGB Emissive Maps.
Referencing a '''PackedEmissionMap''' Overrides '''EmissiveMap0-3''' Inputs.
; '''PackedHeightMap:'''
: '''R:''' HeightMap0 - greyscale
: '''G:''' HeightMap1 - greyscale
: '''B:''' HeightMap2 - greyscale
: '''A:''' HeightMap4 - greyscale
; '''PackedEmissionMap:'''
: '''R:''' EmissionMap0 - greyscale
: '''G:''' EmissionMap1 - greyscale
: '''B:''' EmissionMap2 - greyscale
: '''A:''' EmissionMap4 - greyscale
; '''PackedNormalMap01:'''
: '''R:''' NormalMap0 - Red
: '''G:''' NormalMap0 - Green
: '''B:''' NormalMap1 - Red
: '''A:''' NormalMap1 - Green
; '''PackedNormalMap23:'''
: '''R:''' NormalMap2 - Red
: '''G:''' NormalMap2 - Green
: '''B:''' NormalMap3 - Red
: '''A:''' NormalMap3 - Green


<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}


<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
* [[Color Splat Materials]]
* [[Component:PBS_ColorSplatMetallic]]
* [[Component:TextureCharacterControllerModifier]]
 
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|PBS Color Splat Specular]]
[[Category:Components{{#translation:}}|PBS Color Splat Specular]]
[[Category:Materials:PBS{{#translation:}}|PBS Color Splat Specular]]
[[Category:Materials:PBS{{#translation:}}|PBS Color Splat Specular]]
[[Category:Materials{{#translation:}}|PBS Color Splat Specular]]
[[Category:Materials{{#translation:}}|PBS Color Splat Specular]]
[[Category:Components:Assets:Materials:PBS{{#translation:}}|PBS Color Splat Specular]]
[[Category:Components:Assets:Materials:PBS{{#translation:}}|PBS Color Splat Specular]]

Latest revision as of 20:43, 29 June 2025

Component image 
PBS Color Splat Specular component as seen in the Scene Inspector

A PBS Color Splat (Metallic & Specular) shader:

  • Supports 4 textures of each and a color map, where each channel represents contribution from each
  • Supports height map blending too for sharper, more defined look
  • Is useful for terrains

See also: Color Splat Materials


Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
HighPriorityIntegration Bool 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.
_shader Shader Internal.
MultiValue Bool Multiplies the constant value versions of packed texture information with the corrosponding channel of the packed image.
ColorMap ITexture2D The color splat map to specify what textures go where.
ColorMapScale Float2 The scale of the color splat map.
ColorMapOffset Float2 The offset of the color splat map.
PackedHeightMap ITexture2D See #Packed Textures Channel Mappings.
HeightTransitionRange Float From 0 to this number is the encoding of the height map data.
TextureScale Float2 How much to scale up or down the different texture maps.
TextureOffset Float2 How much to shift around the position of the different texture maps.
AlbedoColor0 ColorX The color tint of Texture0.
AlbedoColor1 ColorX The color tint of Texture1.
AlbedoColor2 ColorX The color to use for spots where B is on ColorMask
AlbedoColor3 ColorX The color to use for spots where A is on ColorMask
AlbedoTexture0 ITexture2D Texture 0 for albedo.
AlbedoTexture1 ITexture2D Texture 1 for albedo.
AlbedoTexture2 ITexture2D Albedo map 2.
AlbedoTexture3 ITexture2D Albedo map 3.
EmissiveColor0 ColorX The emissive texture tint for texture 0.
EmissiveColor1 ColorX The emissive texture tint for texture 1.
EmissiveColor2 ColorX The color to use for spots where B is on AlbedoTexture
EmissiveColor3 ColorX The color to use for spots where A is on AlbedoTexture
EmissiveMap0 ITexture2D The texture 0 for emissive.
EmissiveMap1 ITexture2D The texture 1 for emissive.
EmissiveMap2 ITexture2D The color map for emissive 2.
EmissiveMap3 ITexture2D The color map for emissive 3.
PackedEmissionMap ITexture2D See #Packed Textures Channel Mappings.
PackedNormalMap01 ITexture2D See #Packed Textures Channel Mappings.
PackedNormalMap23 ITexture2D See #Packed Textures Channel Mappings.
NormalScale0 Float The normal scale for normal 0.
NormalScale1 Float The normal scale for normal 1.
NormalScale2 Float The scaling of normal map 2.
NormalScale3 Float The scaling of normal map 3.
AlphaClip Float The minimum threshold for alpha which before this value it will be not rendered for that pixel.
OffsetFactor Float how much this material should be pushed forwards or backwards on the depth buffer factor wise
OffsetUnits Float how much this material should be pushed forwards or backwards on the depth buffer unit wise
RenderQueue Int changes at which point a material renders on the render stack
SpecularColor0 ColorX The color for the Specular for texture set 0.
SpecularColor1 ColorX The color for the Specular for texture set 1.
SpecularColor2 ColorX The color for the Specular 2 if SpecularMap2 is null.
SpecularColor3 ColorX The color for the Specular 3 if SpecularMap3 is null.
SpecularMap0 ITexture2D The map for the Specular for texture set 0.
SpecularMap1 ITexture2D The map for the Specular for texture set 1.
SpecularMap2 ITexture2D The Specular map plus color for Specular 2.
SpecularMap3 ITexture2D The Specular map plus color for Specular 3.

Usage

For comprehensive guides see Color Splat Materials.

Packed Textures Channel Mappings

PackedEmissionMap is greyscale and uses EmissiveColor0-3 Colors.

EmissiveMap0-3 can be used for RGB Emissive Maps.

Referencing a PackedEmissionMap Overrides EmissiveMap0-3 Inputs.

PackedHeightMap:
R: HeightMap0 - greyscale
G: HeightMap1 - greyscale
B: HeightMap2 - greyscale
A: HeightMap4 - greyscale
PackedEmissionMap:
R: EmissionMap0 - greyscale
G: EmissionMap1 - greyscale
B: EmissionMap2 - greyscale
A: EmissionMap4 - greyscale
PackedNormalMap01:
R: NormalMap0 - Red
G: NormalMap0 - Green
B: NormalMap1 - Red
A: NormalMap1 - Green
PackedNormalMap23:
R: NormalMap2 - Red
G: NormalMap2 - Green
B: NormalMap3 - Red
A: NormalMap3 - Green

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

See Also