 |
GaussianBlurPostProcessFillOffsetsAndWeights Method |
FillOffsetsAndWeights fulls the specified offsets and weights arrays with values that are used
in the shader to render this post process.
Offsets define how far from the texture coordinate we sample pixel.
Weights define how much weight this pixel has in the final color.
Namespace: Ab4d.SharpEngine.PostProcessingAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxprotected override void FillOffsetsAndWeights(
RenderingContext renderingContext,
bool isVerticalPass,
int width,
int height,
float[] offsets,
float[] weights
)
Parameters
- renderingContext RenderingContext
- RenderingContext
- isVerticalPass Boolean
- true when we need to prepare values for vertical pass; otherwise horizontal pass will be used.
- width Int32
- width of the input texture
- height Int32
- height of the input texture
- offsets Single
- array of offsets
- weights Single
- array of weights
See Also