Description
The OnRenderTransparent
property of the SceneCamera
class is an event that is triggered during the rendering of the transparent pass. This property allows you to attach custom actions that should be executed when the transparent rendering phase occurs.
Usage
To use the OnRenderTransparent
property, you can assign a delegate or lambda expression to it. This delegate will be called whenever the transparent pass is rendered. This is useful for adding custom rendering logic or effects that should occur during this phase.
Example
// Example of using OnRenderTransparent
SceneCamera camera = new SceneCamera();
// Assign a custom action to be executed during the transparent rendering pass
camera.OnRenderTransparent = () =>
{
// Custom rendering logic here
// For example, render a transparent overlay or effect
};