System.Action OnRenderOpaque { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The OnRenderOpaque property of the SceneCamera class is an event that is triggered during the rendering of the opaque pass. This property allows you to attach custom actions that should be executed when the opaque rendering phase occurs.

Usage

To use the OnRenderOpaque property, you can assign a delegate or lambda expression to it. This delegate will be called whenever the opaque pass is rendered. This is useful for executing custom rendering logic or modifying the rendering process during this specific phase.

Example

// Example of using the OnRenderOpaque property
SceneCamera camera = new SceneCamera();

// Assign a custom action to be executed during the opaque rendering pass
camera.OnRenderOpaque = () => {
    // Custom rendering logic here
    // For example, drawing additional objects or modifying render states
};