Component:PBS VoronoiCrystal: Difference between revisions

From Resonite Wiki
add info
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
{{stub}}
{{Infobox Component
{{Infobox Component
|Image=PBS_VoronoiCrystalComponent.png
|Image=PBS_VoronoiCrystalComponent.png
|Name=PBS Voronoi Crystal
|Name=PBS Voronoi Crystal
}}
}}
The '''PBS_VoronoiCrystal''' component is generated by making a random grid of points, then doing a gradient based on the distance from a point to the midway point to another point on the random point grid. this makes a set of "cells" which can be used to create stars or other effects for use on surfaces.


<!--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|{{Template:Material__shader}}
|NoiseScale|Float2|
|NoiseScale|Float2|{{Template:Material_NoiseScale}}
|NoiseAnimationOffset|Float|
|NoiseAnimationOffset|Float|{{Template:Material_NoiseAnimationOffset}}
|CellColorTint|ColorX|
|CellColorTint|ColorX|{{Template:Material_CellColorTint}}
|ColorGradient|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv5=true|
|ColorGradient|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv5=true|{{Template:Material_ColorGradient}}
|EmissionColor|ColorX|
|EmissionColor|ColorX|{{Template:Material_EmissionColor}}
|EmissionGradient|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv7=true|
|EmissionGradient|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv7=true|{{Template:Material_EmissionGradient}}
|SmoothnessGradient|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv8=true|
|SmoothnessGradient|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv8=true|{{Template:Material_SmoothnessGradient}}
|CellSmoothness|Float|
|CellSmoothness|Float|{{Template:Material_CellSmoothness}}
|CellMetallic|Float|
|CellMetallic|Float|{{Template:Material_CellMetallic}}
|NormalMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv11=true|
|NormalMap|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv11=true|{{Template:Material_NormalMap}}
|NormalStrength|Float|
|NormalStrength|Float|{{Template:Material_NormalStrength}}
|NormalTextureScale|Float2|
|NormalTextureScale|Float2|{{Template:Material_NormalTextureScale}}
|NormalTextureOffset|Float2|
|NormalTextureOffset|Float2|{{Template:Material_NormalTextureOffset}}
|EdgeThickness|Float|
|EdgeThickness|Float|{{Template:Material_EdgeThickness}}
|EdgeColor|ColorX|
|EdgeColor|ColorX|{{Template:Material_EdgeColor}}
|EdgeEmission|ColorX|
|EdgeEmission|ColorX|{{Template:Material_EdgeEmission}}
|EdgeSmoothness|Float|
|EdgeSmoothness|Float|{{Template:Material_EdgeSmoothness}}
|EdgeMetallic|Float|
|EdgeMetallic|Float|{{Template:Material_EdgeMetallic}}
|EdgeNormalStrength|Float|
|EdgeNormalStrength|Float|{{Template:Material_EdgeNormalStrength}}
}}
}}


Line 41: Line 41:


<!--T:5-->
<!--T:5-->
== Related Components ==
== See Also ==
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|PBS Voronoi Crystal]]
[[Category:Components{{#translation:}}|PBS Voronoi Crystal]]
[[Category:Components:Assets:Materials:PBS{{#translation:}}|PBS Voronoi Crystal]]
[[Category:Components:Assets:Materials:PBS{{#translation:}}|PBS Voronoi Crystal]]
[[Category:Materials:PBS{{#translation:}}|PBS Voronoi Crystal]]
[[Category:Materials:PBS{{#translation:}}|PBS Voronoi Crystal]]
[[Category:Materials{{#translation:}}|PBS Voronoi Crystal]]
[[Category:Materials{{#translation:}}|PBS Voronoi Crystal]]

Latest revision as of 22:06, 3 July 2025

Component image 
PBS Voronoi Crystal component as seen in the Scene Inspector

The PBS_VoronoiCrystal component is generated by making a random grid of points, then doing a gradient based on the distance from a point to the midway point to another point on the random point grid. this makes a set of "cells" which can be used to create stars or other effects for use on surfaces.

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.
NoiseScale Float2 how scaled up or down the noise pattern is.
NoiseAnimationOffset Float How offset the noise animation is. Allows for animating the material over time using a time driver Component/ProtoFlux.
CellColorTint ColorX The tint color to multiply different cells generated by as part of the voronoi texture.
ColorGradient ITexture2D The tint color of the cells generated towards their center as a sideways pixel line image.
EmissionColor ColorX The tint of the emission color.
EmissionGradient ITexture2D The emission/glow of the cells generated towards their center as a sideways pixel line image.
SmoothnessGradient ITexture2D The smoothness of the cells generated towards their center as a sideways pixel line image.
CellSmoothness Float The smoothness to multiply different cells generated by as part of the voronoi texture.
CellMetallic Float The metallicness to multiply the existing metallic gradient for different cells for the voronoi texture.
NormalMap ITexture2D The normal map is used as a way to change the appearance of a surface when shined on by lights, to give the illusion of a raised surface.
NormalStrength Float How much to scale up or down the effect of the normals.
NormalTextureScale Float2 The scale of the NormalMap texture.
NormalTextureOffset Float2 The offset of the NormalMap texture.
EdgeThickness Float The thickness of the edges between cells before they advance along the gradient texture towards the center.
EdgeColor ColorX The color of the material edge where it is being sliced.
EdgeEmission ColorX the emission color of the edges of the voronoi effect.
EdgeSmoothness Float the smoothness of the edges of the voronoi cells.
EdgeMetallic Float the metallicness of the edges of the voronoi cells.
EdgeNormalStrength Float the normal strength of the edges on the voronoi cells.

Usage

Examples

See Also