Table of Contents

Method Generate

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Generate()

Generates an observable sequence that contains a single view matrix representing a camera with the specified position and up vector, looking at the specified target.

public override IObservable<Matrix4> Generate()

Returns

IObservable<Matrix4>

A sequence containing the created Matrix4 look-at view matrix for transforming world space into camera space.

Generate<TSource>(IObservable<TSource>)

Generates an observable sequence of view matrices representing a camera with the specified position and up vector, looking at the specified target, where each Matrix4 object is emitted only when an observable sequence emits a notification.

public IObservable<Matrix4> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence containing the notifications used for emitting new matrices.

Returns

IObservable<Matrix4>

The sequence of created Matrix4 look-at view matrices for transforming world space into camera space.

Type Parameters

TSource

The type of the elements in the source sequence.