DepthDownsamplingMaterial
Extends:
Implements:
A depth downsampling shader material.
Based on an article by Eleni Maria Stea: https://eleni.mutantstargoat.com/hikiko/depth-aware-upsampling-6
Constructor Summary
Public Constructor | ||
public |
Constructs a new depth downsampling material. |
Member Summary
Public Members | ||
public set |
depthBuffer: Texture The depth buffer. |
|
public set |
depthPacking: DepthPackingStrategies The depth packing strategy. |
|
public |
|
|
public set |
normalBuffer: Texture The normal buffer. |
Method Summary
Public Methods | ||
public |
setDepthBuffer(buffer: Texture, depthPacking: DepthPackingStrategies) this method was deprecated. Use depthBuffer and depthPacking instead.
Sets the depth buffer. |
|
public |
setNormalBuffer(value: Texture) this method was deprecated. Use normalBuffer instead.
Sets the normal buffer. |
|
public |
Sets the size of this object. |
|
public |
setTexelSize(x: Number, y: Number) this method was deprecated. Use setSize() instead.
Sets the texel size. |
Public Constructors
Public Members
Public Methods
public setDepthBuffer(buffer: Texture, depthPacking: DepthPackingStrategies) source
Sets the depth buffer.
Params:
Name | Type | Attribute | Description |
buffer | Texture | The depth texture. |
|
depthPacking | DepthPackingStrategies |
|
The depth packing strategy. |
public setNormalBuffer(value: Texture) source
Sets the normal buffer.
Params:
Name | Type | Attribute | Description |
value | Texture | The normal buffer. |