Description
The EffectsTranslucent
field is a member of the SceneLayerType
enumeration in the Sandbox API. It represents a rendering layer used for translucent effects that are applied on a quarter-sized texture. This layer is typically used for rendering effects that require translucency, such as glass or water, where the effects need to be blended with the background in a visually appealing manner.
Usage
Use the EffectsTranslucent
field when you need to specify a rendering layer for translucent effects in your scene. This is particularly useful when you want to ensure that these effects are rendered correctly in relation to other scene elements, especially when dealing with complex visual effects that require depth sorting and blending.
Example
// Example of using SceneLayerType.EffectsTranslucent
public class MyTranslucentEffect : Component
{
public override void Render()
{
// Set the rendering layer to EffectsTranslucent
Scene.Current.SetLayer(SceneLayerType.EffectsTranslucent);
// Render translucent effect here
// ...
}
}