M3PostProcess class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
dispose()
→ void
-
-
drawBlur(M3Texture srcTex, double dirX, double dirY)
→ void
-
Run single separable blur step in
dirX, dirY direction
-
drawBrightPass(M3Texture srcTex, {double threshold = 1.0, double softKnee = 0.5})
→ void
-
Run Bright-pass filter to extract highlights from
srcTex into current FBO
-
drawComposite(M3Texture sceneTex, M3Texture bloomTex, {double bloomIntensity = 0.8, M3TonemapMode tonemapMode = M3TonemapMode.aces, double exposure = 1.0})
→ void
-
Composite
sceneTex with bloomTex and apply tonemapping/gamma to current FBO / default FBO
-
drawDof(M3Texture colorTex, M3Texture depthTex, {required double near, required double far, double focusDistance = 15.0, double focusRange = 5.0, double bokehRadius = 8.0})
→ void
-
Run Depth of Field (DOF) pass reading
colorTex and depthTex
-
drawFullscreen(M3Texture tex, {M3Program? program, M3TonemapMode tonemapMode = M3TonemapMode.aces, double exposure = 1.0})
→ void
-
Draw a fullscreen pass with a given program and primary texture
-
drawFxaa(M3Texture srcTex)
→ void
-
Run FXAA antialiasing pass from
srcTex into current FBO / default FBO
-
init()
→ void
-