Component:DebugMaterial: Difference between revisions

From Resonite Wiki
Automated: update component fields
debug
 
(5 intermediate revisions by 3 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=DebugMaterialComponent.png
|Image=DebugMaterialComponent.png
|Name=Debug Material
|Name=Debug Material
}}
}}
The '''DebugMaterial''' component is used to display mesh data in the form of a color map.
{{Template:Debug}}


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|HighPriorityIntegration|Bool|
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}}
|_shader|{{RootFieldType|AssetRef`1|[[Type:Shader|Shader]]}}|TypeAdv1=true|
|_shader|{{RootFieldType|AssetRef`1|[[Type:Shader|Shader]]}}|TypeAdv1=true| Internal.
|Scale|Float|
|Scale|Float| How much to scale the positions of the displayed color data pixels.
|Offset|Float3|
|Offset|Float3| How much to offset the positions of the displayed color data pixels.
|Visualize|'''[[#MeshData|MeshData]]'''|TypeAdv4=true|
|Visualize|'''[[#MeshData|MeshData]]'''|TypeAdv4=true| What kind of data to visualize for the mesh.
|Normalize|Bool|
|Normalize|Bool| Enable keeping visualized mesh data within a 0-1 range for all color values.
|RenderQueue|Int|
|RenderQueue|Int|{{Template:Material_RenderQueue_Desc}}
}}
}}


Line 28: Line 30:


{{Table EnumValues
{{Table EnumValues
|Position|0|
|Position|0| Position of the mesh in world space.
|Color|1|
|Color|1| The vertex colors of the mesh
|ColorAlpha|2|
|ColorAlpha|2| The alpha of the vertex colors of the mesh.
|Normals|3|
|Normals|3| The polygon normal shading data of the mesh.
|Tangents|4|
|Tangents|4| the polygon tangent data of the mesh.
|TangentDir|5|
|TangentDir|5| the polygon tangent direction data of the mesh.
|Bitangents|6|
|Bitangents|6| the polygon Bi tangent data of the mesh.
|UV0s|7|
|UV0s|7| The first UV map data of the mesh
|UV1s|8|
|UV1s|8| The second UV map data of the mesh
|UV2s|9|
|UV2s|9| The third UV map data of the mesh
|UV3s|10|
|UV3s|10| The last UV map data of the mesh
}}
}}


Line 45: Line 47:


<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Debug Material]]
[[Category:Components{{#translation:}}|Debug Material]]
[[Category:Components:Assets:Materials:Special{{#translation:}}|Debug Material]]
[[Category:Components:Assets:Materials:Special{{#translation:}}|Debug Material]]
[[Category:Materials:Special{{#translation:}}|Debug Material]]
[[Category:Materials{{#translation:}}|Debug Material]]
[[Category:Components With Nested Enums{{#translation:}}|Debug Material]]
[[Category:Components With Nested Enums{{#translation:}}|Debug Material]]

Latest revision as of 02:13, 15 February 2025

Component image 
Debug Material component as seen in the Scene Inspector

The DebugMaterial component is used to display mesh data in the form of a color map.

This game element is a debug item. Elements like this may be removed at any time without warning, and creations should not rely on it.

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.
Scale Float How much to scale the positions of the displayed color data pixels.
Offset Float3 How much to offset the positions of the displayed color data pixels.
Visualize MeshData What kind of data to visualize for the mesh.
Normalize Bool Enable keeping visualized mesh data within a 0-1 range for all color values.
RenderQueue Int changes at which point a material renders on the render stack

Usage

MeshData

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


Values
Name Value Description
Position 0 Position of the mesh in world space.
Color 1 The vertex colors of the mesh
ColorAlpha 2 The alpha of the vertex colors of the mesh.
Normals 3 The polygon normal shading data of the mesh.
Tangents 4 the polygon tangent data of the mesh.
TangentDir 5 the polygon tangent direction data of the mesh.
Bitangents 6 the polygon Bi tangent data of the mesh.
UV0s 7 The first UV map data of the mesh
UV1s 8 The second UV map data of the mesh
UV2s 9 The third UV map data of the mesh
UV3s 10 The last UV map data of the mesh

Examples

See Also