SceneLayerType EffectsOpaque

book_4_sparkGenerated
code_blocksInput

Description

The EffectsOpaque field is a member of the SceneLayerType enumeration in the Sandbox API. It represents a rendering layer used for opaque effects on a quarter-resolution texture. This layer is typically used for rendering effects that do not require transparency and can be rendered at a lower resolution to optimize performance.

Usage

Use the EffectsOpaque layer when you need to render opaque effects that do not require full resolution. This can help improve rendering performance by reducing the amount of detail processed for these effects.

Example

// Example of using SceneLayerType.EffectsOpaque
Scene myScene = new Scene();

// Set the rendering layer to EffectsOpaque for a specific effect
myScene.SetLayer(SceneLayerType.EffectsOpaque);

// Add components or objects that should be rendered in the EffectsOpaque layer
GameObject effectObject = new GameObject();
effectObject.AddComponent<MyOpaqueEffectComponent>();
myScene.AddGameObject(effectObject);