Class BilateralFilterProperties
- Namespace
- Gamelogic.Fx.PostProcessing.Effects
- Assembly
- Gamelogic.Fx.dll
Shader properties for the bilateral filter post-processing effect.
[Serializable]
public sealed class BilateralFilterProperties : SeparableShaderProperties
- Inheritance
-
BilateralFilterProperties
- Inherited Members
Properties
RangeSigma
Controls the color/intensity range for edge-preserving blending.
public float RangeSigma { get; set; }
Property Value
Remarks
Lower values preserve more edges.
ShaderName
Gets the name of the shader used by this property set.
public override string ShaderName { get; }
Property Value
Remarks
This name is passed to the internal shader lookup system when the properties are enabled. It should match the full shader path as defined in the shader file.
SpatialSigma
Controls the spatial extent of the Gaussian kernel.
public float SpatialSigma { get; set; }
Property Value
Remarks
Higher values consider farther pixels.
Methods
SetMaterialProperties(Material)
Applies all shader-related properties to the given material.
public override void SetMaterialProperties(Material effectMaterial)
Parameters
effectMaterialMaterial
Remarks
Subclasses should override this method and set all relevant shader uniforms (for example, floats, vectors, colors, textures, and keywords).