UShader Engine Wikia
Advertisement
Camera depth

 Name[]

Camera depth texture

Synopsis[]

vector4 CameraDepRGBa(vector2 Texcoord, vector2 dx, vector2 dy);
vector3 CameraDepRGB(vector2 Texcoord, vector2 dx, vector2 dy);
vector1 CameraDep_a(vector2 Texcoord, vector2 dx, vector2 dy);
vector3 Normal(vector2 Texcoord, vector2 dx, vector2 dy);

Parameters[]

Texcoord

Texture coordinates.

dx

Pre computed derivative along the x axis.

dy

Pre computed derivative along the y axis.

Description[]

This is a minimalistic G-buffer Texture that can be used for post-processing effects or to implement custom lighting models (e.g. light pre-pass).

Advertisement