Api Sandbox Rendering RefractionSetup
struct

RefractionSetup

public sealed struct RefractionSetup

Allows special setup for refraction, such as offsetting the clip plane

Properties

Name Type Description
FallbackColor Color? If we can't render the reflection and this is set, we'll clear the render target to this color

Fields

Name Type Description
ViewSetup ViewSetup Allows overriding everything you normally can
ClipOffset Single Offset the reflection plane's clip plane by this much
RenderBehind Boolean If true we'll render the reflection even if we're behind the plane
Assembly: Sandbox.Engine Namespace: Sandbox.Rendering Full Name: Sandbox.Rendering.RefractionSetup