Class TripleRhombiBokeh
Applies a TripleRhombi blur to a texture. (Hexagonal bokeh)
public class TripleRhombiBokeh : BokehBlur, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
TripleRhombiBokeh
- Implements
- Inherited Members
- Extension Methods
Remarks
This is a technique based on DICE's presentation at Siggraph 2011. http://advances.realtimerendering.com/s2011/White,%20BarreBrisebois-%20Rendering%20in%20BF3%20%28Siggraph%202011%20Advances%20in%20Real-Time%20Rendering%20Course%29.pdf
Constructors
TripleRhombiBokeh()
Initializes a new instance of the TripleRhombiBokeh class.
public TripleRhombiBokeh()
Properties
Phase
Phase of the bokeh effect. (rotation angle in radian)
public float Phase { get; set; }
Property Value
Radius
Sets the radius of the blur. A child class can override it to do special processing when a new value is provided.
public override float Radius { get; set; }
Property Value
Methods
DrawCore(RenderDrawContext)
Main drawing method for this renderer that must be implemented.
protected override void DrawCore(RenderDrawContext context)
Parameters
context
RenderDrawContextThe context.
DrawCoreNaive(RenderDrawContext)
protected void DrawCoreNaive(RenderDrawContext context)
Parameters
context
RenderDrawContext
InitializeCore()
protected override void InitializeCore()