![]() | LuminanceFilter Class |
Namespace: DigitalRune.Graphics.PostProcessing
The LuminanceFilter type exposes the following members.
Name | Description | |
---|---|---|
![]() | LuminanceFilter |
Initializes a new instance of the LuminanceFilter class.
|
Name | Description | |
---|---|---|
![]() | Dispose |
Releases all resources used by an instance of the PostProcessor class.
(Inherited from PostProcessor.) |
![]() | Dispose(Boolean) |
Releases the unmanaged resources used by an instance of the PostProcessor class
and optionally releases the managed resources.
(Inherited from PostProcessor.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnDisable |
Called when this post-processor is disabled.
(Overrides PostProcessorOnDisable.) |
![]() | OnEnable |
Called when this post-processor is enabled.
(Inherited from PostProcessor.) |
![]() | OnProcess |
Called when the post-processor should perform the post-processing.
(Overrides PostProcessorOnProcess(RenderContext).) |
![]() | Process |
Performs the post-processing using the SourceTexture
and the RenderTarget specified in the render context.
(Inherited from PostProcessor.) |
![]() | Reset | Obsolete.
Resets this luminance adaption.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | AdaptionSpeed |
Gets or sets the adaption speed of the eye.
|
![]() | DefaultTargetFormat |
Gets or sets the default target format.
(This property is used by the PostProcessorChain).
(Inherited from PostProcessor.) |
![]() | Enabled |
Gets or sets a value indicating whether this post-processor is enabled.
(Inherited from PostProcessor.) |
![]() | GraphicsService |
Gets the graphics service.
(Inherited from PostProcessor.) |
![]() | IsDisposed |
Gets a value indicating whether this post-processor has been disposed of.
(Inherited from PostProcessor.) |
![]() | Name |
Gets or sets the name of the post-processor.
(Inherited from PostProcessor.) |
![]() | UseAdaption |
Gets or sets a value indicating whether dynamic eye adaption should be used.
|
![]() | UseGeometricMean |
Gets or sets a value indicating whether the average luminance is computed using the
geometric mean.
|
The render target should be a 1 x 1 texture with 3 floating-point channels (e.g. HalfVector4). The luminance info is stored in this order: (minimum, average, maximum). That means, the minimum luminance is stored in the "red" channel, and so on.
This post-processor stores luminance information of a frame for use in the next frame. The information is stored with the currently active camera node. When there is a cut in the scene (i.e. a new level is loaded or the view changes significantly), the method InvalidateViewDependentData of the camera node needs to be called to reset the luminance information. Further, this post-processor expects that it is called once per frame for a certain camera node. It might not work as expected if it is called several times per frame (e.g. to process different views using the same camera).