Class FlexalonViewport
- Namespace
- Flexalon
- Assembly
- Flexalon.dll
Clips renderers registered by FlexalonClippable components to this object's Flexalon bounds, using shaders that include FlexalonViewport.hlsl.
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("Flexalon/Flexalon Viewport")]
public class FlexalonViewport : MonoBehaviour
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourFlexalonViewport
Remarks
Each enabled viewport owns a slot in global shader arrays, so moving or resizing it never touches its renderers. An axis with zero size is not clipped, so a flat viewport clips only in its plane. A virtualizer still treats that axis as zero size, so give a virtualized 3D list's viewport enough depth to cover the items it should create. A viewport whose scale is zero on any axis clips everything. At most MaxViewports viewports can clip at once. Viewports enabled beyond that log an error and leave their content unclipped.
Fields
MaxViewports
The maximum number of viewports that can be enabled at once.
public const int MaxViewports = 63
Field Value
- int
Properties
EdgeFade
Width of a dithered fade inside each clipped edge, in this object's local units. 0 is a hard edge. Content stays opaque: pixels in the fade are discarded in a screen-space pattern, which shows as a stipple unless temporal anti-aliasing is on.
public float EdgeFade { get; set; }
Property Value
- float