imported>Terra added info about where the material is used and how it works in usage section |
m ProbablePrime moved page DepthProjectionMaterial (Component) to Component:DepthProjectionMaterial: Creating component Namespace |
||
(No difference)
|
Revision as of 06:29, 20 January 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
This component is commonly used when importing depth videos and acts as a material that displaces vertices in 3D.
Component image
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
HighPriorityIntegration
|
Bool | |
_shader
|
IAssetProvider<Shader> | |
Color
|
IAssetProvider<ITexture2D> | |
Depth
|
IAssetProvider<ITexture2D> | |
DepthEncoding
|
DepthEncoding | |
ColorTextureOffset
|
Float2 | |
ColorTextureScale
|
Float2 | |
DepthTextureOffset
|
Float2 | |
DepthTextureScale
|
Float2 | |
DepthFrom
|
Float | |
DepthTo
|
Float | |
FieldOfView
|
Float2 | |
NearClip
|
Float | |
FarClip
|
Float | |
DiscardThreshold
|
Float | |
DiscardOffset
|
Float | |
BlendMode
|
BlendMode | |
ZWrite
|
ZWrite |
Usage
The material uses a file that has a greyscale video (representing depth at each pixel) and a normal color video in order to "overlay" the color info on top of the 3D distortion created by the greyscale input. There are texture2D slots for depth and color, meaning two separate files could be used given the DepthTextureOffset property is set to 0.