Component:GradientSkyMaterial

From Resonite Wiki
This page contains changes which are not marked for translation.
Component image 
Gradient Sky Material component as seen in the Scene Inspector

The GradientSkyMaterial component is used in Component:Skybox to make a gradient type sky for use in worlds.

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.
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 The Shader to use. Internal.
BaseColor ColorX The base color of the sky.
_gradients list of Gradient Applies a list of Gradients to the sky.

Usage

Attach to a slot and insert into a Component:Skybox component and use the SetCurrentSky() Sync Method to use this component. Don't forget to add some _gradients to the list.

Gradient

Gradient is a nested type used in the _gradients list.

Fields
Name Type Description
Direction Float3 The direction this gradient should point in.
FromColor ColorX The color to start at for this gradient.
ToColor ColorX The color to end at for this gradient.
Spread Float How much to extend the gradient from it's From and To limits beyond the transitioning section.
From Float Where this gradient should start from in a range from 0<->1
To Float Where this gradient should end at in a range from 0<->1
Exp Float The sharpness of the transition of the gradient


Examples

Related Components