Class UpdateUniform
Represents an operator that updates the value of a uniform variable on the specified shader.
[Combinator]
[WorkflowElementCategory(ElementCategory.Sink)]
public class UpdateUniform
- Inheritance
-
UpdateUniform
- Inherited Members
Properties
ShaderName
Gets or sets the name of the shader program.
[TypeConverter(typeof(ShaderNameConverter))]
public string ShaderName { get; set; }
Property Value
UniformName
Gets or sets the name of the uniform variable to update.
public string UniformName { get; set; }
Property Value
Methods
Process(IObservable<TextureUnit>)
Updates a sampler 2D uniform variable on the specified shader with the values from an observable sequence.
public IObservable<TextureUnit> Process(IObservable<TextureUnit> source)
Parameters
source
IObservable<TextureUnit>The sequence of values used to update the uniform variable.
Returns
- IObservable<TextureUnit>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Matrix2>)
Updates a mat2 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Matrix2> Process(IObservable<Matrix2> source)
Parameters
source
IObservable<Matrix2>The sequence of values used to update the uniform variable.
Returns
- IObservable<Matrix2>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Matrix3>)
Updates a mat3 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Matrix3> Process(IObservable<Matrix3> source)
Parameters
source
IObservable<Matrix3>The sequence of values used to update the uniform variable.
Returns
- IObservable<Matrix3>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Matrix4>)
Updates a mat4 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Matrix4> Process(IObservable<Matrix4> source)
Parameters
source
IObservable<Matrix4>The sequence of values used to update the uniform variable.
Returns
- IObservable<Matrix4>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Quaternion>)
Updates a vec4 uniform variable on the specified shader with the quaternion values from an observable sequence.
public IObservable<Quaternion> Process(IObservable<Quaternion> source)
Parameters
source
IObservable<Quaternion>The sequence of quaternion values used to update the uniform variable.
Returns
- IObservable<Quaternion>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Vector2>)
Updates a vec2 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Vector2> Process(IObservable<Vector2> source)
Parameters
source
IObservable<Vector2>The sequence of values used to update the uniform variable.
Returns
- IObservable<Vector2>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Vector3>)
Updates a vec3 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Vector3> Process(IObservable<Vector3> source)
Parameters
source
IObservable<Vector3>The sequence of values used to update the uniform variable.
Returns
- IObservable<Vector3>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Vector4>)
Updates a vec4 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Vector4> Process(IObservable<Vector4> source)
Parameters
source
IObservable<Vector4>The sequence of values used to update the uniform variable.
Returns
- IObservable<Vector4>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<double>)
Updates a double-precision floating-point uniform variable on the specified shader with the values from an observable sequence.
public IObservable<double> Process(IObservable<double> source)
Parameters
source
IObservable<double>The sequence of values used to update the uniform variable.
Returns
- IObservable<double>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<int>)
Updates a 32-bit integer uniform variable on the specified shader with the values from an observable sequence.
public IObservable<int> Process(IObservable<int> source)
Parameters
source
IObservable<int>The sequence of values used to update the uniform variable.
Returns
- IObservable<int>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<float>)
Updates a single-precision floating-point uniform variable on the specified shader with the values from an observable sequence.
public IObservable<float> Process(IObservable<float> source)
Parameters
source
IObservable<float>The sequence of values used to update the uniform variable.
Returns
- IObservable<float>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Tuple<double, double, double, double>>)
Updates a dvec4 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Tuple<double, double, double, double>> Process(IObservable<Tuple<double, double, double, double>> source)
Parameters
source
IObservable<Tuple<double, double, double, double>>The sequence of values used to update the uniform variable.
Returns
- IObservable<Tuple<double, double, double, double>>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Tuple<double, double, double>>)
Updates a dvec3 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Tuple<double, double, double>> Process(IObservable<Tuple<double, double, double>> source)
Parameters
source
IObservable<Tuple<double, double, double>>The sequence of values used to update the uniform variable.
Returns
- IObservable<Tuple<double, double, double>>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Tuple<double, double>>)
Updates a dvec2 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Tuple<double, double>> Process(IObservable<Tuple<double, double>> source)
Parameters
source
IObservable<Tuple<double, double>>The sequence of values used to update the uniform variable.
Returns
- IObservable<Tuple<double, double>>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Tuple<int, int, int, int>>)
Updates an ivec4 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Tuple<int, int, int, int>> Process(IObservable<Tuple<int, int, int, int>> source)
Parameters
source
IObservable<Tuple<int, int, int, int>>The sequence of values used to update the uniform variable.
Returns
- IObservable<Tuple<int, int, int, int>>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Tuple<int, int, int>>)
Updates an ivec3 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Tuple<int, int, int>> Process(IObservable<Tuple<int, int, int>> source)
Parameters
source
IObservable<Tuple<int, int, int>>The sequence of values used to update the uniform variable.
Returns
- IObservable<Tuple<int, int, int>>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Tuple<int, int>>)
Updates an ivec2 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Tuple<int, int>> Process(IObservable<Tuple<int, int>> source)
Parameters
source
IObservable<Tuple<int, int>>The sequence of values used to update the uniform variable.
Returns
- IObservable<Tuple<int, int>>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Tuple<float, float, float, float>>)
Updates a vec4 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Tuple<float, float, float, float>> Process(IObservable<Tuple<float, float, float, float>> source)
Parameters
source
IObservable<Tuple<float, float, float, float>>The sequence of values used to update the uniform variable.
Returns
- IObservable<Tuple<float, float, float, float>>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Tuple<float, float, float>>)
Updates a vec3 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Tuple<float, float, float>> Process(IObservable<Tuple<float, float, float>> source)
Parameters
source
IObservable<Tuple<float, float, float>>The sequence of values used to update the uniform variable.
Returns
- IObservable<Tuple<float, float, float>>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.
Process(IObservable<Tuple<float, float>>)
Updates a vec2 uniform variable on the specified shader with the values from an observable sequence.
public IObservable<Tuple<float, float>> Process(IObservable<Tuple<float, float>> source)
Parameters
source
IObservable<Tuple<float, float>>The sequence of values used to update the uniform variable.
Returns
- IObservable<Tuple<float, float>>
An observable sequence that is identical to the
source
sequence but where there is an additional side effect of assigning the uniform variable to the values of the sequence.