Click or drag to resize
Ab4d.SharpEngine logo

ColorOverlayPostProcess Class

ColorOverlayPostProcess is a post process that can add the specified color to each pixel and then multiply the color by the specified ColorMultiplier.
The following operation is executed in the shader: finalColor = vec4(color.rgb + AddedColor, color.a) * ColorMultiplier
Inheritance Hierarchy

Namespace: Ab4d.SharpEngine.PostProcessing
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public class ColorOverlayPostProcess : SimpleFragmentShaderPostProcess

The ColorOverlayPostProcess type exposes the following members.

Constructors
 NameDescription
Public methodColorOverlayPostProcess Initializes a new instance of the BlackAndWhitePostProcess class.
Top
Properties
 NameDescription
Public propertyAddedColor Color3 that is added to each pixel (before multiplying by ColorMultiplier). Default value is Color3.Black (0, 0, 0). This value does not change the final color.
Public propertyColorMultiplier Color4 that is multiplied by each pixel's color (after adding AddedColor). Note that when Alpha is less than 1, then other color components must be multiplied by Alpha to get the correct color (this is required because colors are alpha-premultiplied). Default value is Color4.White (1, 1, 1, 1). This value does not change the final color.
Top
Methods
 NameDescription
Protected methodCustomBindAction
(Overrides StandardPostProcessCustomBindAction(RenderingContext, CommandBuffer, PipelineLayout))
Protected methodGetFragmentPushConstantsSize GetFragmentPushConstantsSize can be overriden to provide the size in bytes of the push constants in fragment shader.
(Overrides StandardPostProcessGetFragmentPushConstantsSize)
Top
Remarks

[Missing <remarks> documentation for "T:Ab4d.SharpEngine.PostProcessing.ColorOverlayPostProcess"]

See Also