989onan bot (talk | contribs) Automated: update 'StencilComparison' description,'StencilOperation' description,'StencilID' description,'StencilWriteMask' description,'StencilReadMask' description,'RenderQueue' description,'BlendMode' description,'Sidedness' description,'ZWrite' description,'ZTest' description,'OffsetFactor' description,'OffsetUnits' description, |
add info |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
{{Infobox Component | {{Infobox Component | ||
|Image=PBS_ColorSplatSpecularComponent.png | |Image=PBS_ColorSplatSpecularComponent.png | ||
Line 18: | Line 17: | ||
{{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| Internal. | ||
|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| The color splat map to specify what textures go where. | ||
|ColorMapScale|Float2| | |ColorMapScale|Float2| The scale of the color splat map. | ||
|ColorMapOffset|Float2| | |ColorMapOffset|Float2| The offset of the color splat map. | ||
|PackedHeightMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv6=true| | |PackedHeightMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv6=true| See [[#Packed Textures Channel Mappings]]. | ||
|HeightTransitionRange|Float| | |HeightTransitionRange|Float| From 0 to this number is the encoding of the height map data. | ||
|TextureScale|Float2| | |TextureScale|Float2| The scale of the texture maps. | ||
|TextureOffset|Float2| | |TextureOffset|Float2| The offset of the texture maps. | ||
|AlbedoColor0|ColorX| | |AlbedoColor0|ColorX| The color tint for the Albedo map 0. | ||
|AlbedoColor1|ColorX| | |AlbedoColor1|ColorX| The color tint for the Albedo map 1. | ||
|AlbedoColor2|ColorX| | |AlbedoColor2|ColorX| The color tint for the Albedo map 2. | ||
|AlbedoColor3|ColorX| | |AlbedoColor3|ColorX| The color tint for the Albedo map 3. | ||
|AlbedoTexture0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv14=true| | |AlbedoTexture0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv14=true| Albedo map 0. | ||
|AlbedoTexture1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv15=true| | |AlbedoTexture1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv15=true| Albedo map 1. | ||
|AlbedoTexture2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv16=true| | |AlbedoTexture2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv16=true| Albedo map 2. | ||
|AlbedoTexture3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv17=true| | |AlbedoTexture3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv17=true| Albedo map 3. | ||
|EmissiveColor0|ColorX| | |EmissiveColor0|ColorX| The color tint for the emissive map 0. | ||
|EmissiveColor1|ColorX| | |EmissiveColor1|ColorX| The color tint for the emissive map 1. | ||
|EmissiveColor2|ColorX| | |EmissiveColor2|ColorX| The color tint for the emissive map 2. | ||
|EmissiveColor3|ColorX| | |EmissiveColor3|ColorX| The color tint for the emissive map 3. | ||
|EmissiveMap0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv22=true| | |EmissiveMap0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv22=true| The color map for emissive 0. | ||
|EmissiveMap1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv23=true| | |EmissiveMap1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv23=true| The color map for emissive 1. | ||
|EmissiveMap2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv24=true| | |EmissiveMap2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv24=true| The color map for emissive 2. | ||
|EmissiveMap3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv25=true| | |EmissiveMap3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv25=true| The color map for emissive 3. | ||
|PackedEmissionMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv26=true| | |PackedEmissionMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv26=true| See [[#Packed Textures Channel Mappings]]. | ||
|PackedNormalMap01|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv27=true| | |PackedNormalMap01|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv27=true| See [[#Packed Textures Channel Mappings]]. | ||
|PackedNormalMap23|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv28=true| | |PackedNormalMap23|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv28=true| See [[#Packed Textures Channel Mappings]]. | ||
|NormalScale0|Float| | |NormalScale0|Float| The scaling of normal map 0. | ||
|NormalScale1|Float| | |NormalScale1|Float| The scaling of normal map 1. | ||
|NormalScale2|Float| | |NormalScale2|Float| The scaling of normal map 2. | ||
|NormalScale3|Float| | |NormalScale3|Float| The scaling of normal map 3. | ||
|AlphaClip|Float| | |AlphaClip|Float| {{Template:Material_AlphaCutoff_Desc}} | ||
|OffsetFactor|Float|{{Template:Material_OffsetFactor_Desc}} | |OffsetFactor|Float|{{Template:Material_OffsetFactor_Desc}} | ||
|OffsetUnits|Float|{{Template:Material_OffsetUnits_Desc}} | |OffsetUnits|Float|{{Template:Material_OffsetUnits_Desc}} | ||
|RenderQueue|Int|{{Template:Material_RenderQueue_Desc}} | |RenderQueue|Int|{{Template:Material_RenderQueue_Desc}} | ||
|SpecularColor0|ColorX| | |SpecularColor0|ColorX| The color for the Specular 0 if <code>SpecularMap0</code> is null. | ||
|SpecularColor1|ColorX| | |SpecularColor1|ColorX| The color for the Specular 1 if <code>SpecularMap1</code> is null. | ||
|SpecularColor2|ColorX| | |SpecularColor2|ColorX| The color for the Specular 2 if <code>SpecularMap2</code> is null. | ||
|SpecularColor3|ColorX| | |SpecularColor3|ColorX| The color for the Specular 3 if <code>SpecularMap3</code> is null. | ||
|SpecularMap0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv41=true| | |SpecularMap0|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv41=true| The Specular map plus color for Specular 0. | ||
|SpecularMap1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv42=true| | |SpecularMap1|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv42=true| The Specular map plus color for Specular 1. | ||
|SpecularMap2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv43=true| | |SpecularMap2|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv43=true| The Specular map plus color for Specular 2. | ||
|SpecularMap3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv44=true| | |SpecularMap3|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv44=true| The Specular map plus color for Specular 3. | ||
}} | }} | ||
Line 67: | Line 66: | ||
== 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--> | ||
== | == See Also == | ||
* [[Component:PBS_ColorSplatMetallic]] | |||
</translate> | </translate> | ||
[[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]] |
Revision as of 18:29, 26 January 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
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 | The scale of the texture maps. |
TextureOffset
|
Float2 | The offset of the texture maps. |
AlbedoColor0
|
ColorX | The color tint for the Albedo map 0. |
AlbedoColor1
|
ColorX | The color tint for the Albedo map 1. |
AlbedoColor2
|
ColorX | The color tint for the Albedo map 2. |
AlbedoColor3
|
ColorX | The color tint for the Albedo map 3. |
AlbedoTexture0
|
ITexture2D | Albedo map 0. |
AlbedoTexture1
|
ITexture2D | Albedo map 1. |
AlbedoTexture2
|
ITexture2D | Albedo map 2. |
AlbedoTexture3
|
ITexture2D | Albedo map 3. |
EmissiveColor0
|
ColorX | The color tint for the emissive map 0. |
EmissiveColor1
|
ColorX | The color tint for the emissive map 1. |
EmissiveColor2
|
ColorX | The color tint for the emissive map 2. |
EmissiveColor3
|
ColorX | The color tint for the emissive map 3. |
EmissiveMap0
|
ITexture2D | The color map for emissive 0. |
EmissiveMap1
|
ITexture2D | The color map for emissive 1. |
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 scaling of normal map 0. |
NormalScale1
|
Float | The scaling of normal map 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 0 if SpecularMap0 is null.
|
SpecularColor1
|
ColorX | The color for the Specular 1 if SpecularMap1 is null.
|
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 Specular map plus color for Specular 0. |
SpecularMap1
|
ITexture2D | The Specular map plus color for Specular 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.