Table of Contents

Class UpdateScissorState

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Represents an operator that updates the active scissor box in the shader window. Any fragments falling outside the scissor box will be discarded.

public class UpdateScissorState : Sink
Inheritance
UpdateScissorState
Inherited Members

Properties

Height

Gets or sets the height of the scissor box, in normalized coordinates.

public float Height { get; set; }

Property Value

float

Width

Gets or sets the width of the scissor box, in normalized coordinates.

public float Width { get; set; }

Property Value

float

X

Gets or sets the x-coordinate of the lower left corner of the scissor box.

public float X { get; set; }

Property Value

float

Y

Gets or sets the y-coordinate of the lower left corner of the scissor box.

public float Y { get; set; }

Property Value

float

Methods

Process<TSource>(IObservable<TSource>)

Updates the active scissor box in the shader window whenever an observable sequence emits a notification.

public override IObservable<TSource> Process<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence of notifications used to update the active scissor box.

Returns

IObservable<TSource>

An observable sequence that is identical to the source sequence but where there is an additional side effect of updating the active scissor box in the shader window.

Type Parameters

TSource

The type of the elements in the source sequence.