FANDOM


Texture

Name Edit

Texture - performs a texture lookup in a given 2D sampler and, in some cases, a shadow comparison. May also use pre computed derivatives if those are provided.

Synopsis Edit

vector4 tex2D(vector2 Texcoord, vector2 dx, vector2 dy);
vector3 tex2D(vector2 Texcoord, vector2 dx, vector2 dy);
vector1 tex2D(vector2 Texcoord, vector2 dx, vector2 dy);
vector3 Normal(vector2 Texcoord, vector2 dx, vector2 dy);

Parameters Edit

Texcoord

Coordinates to perform the lookup.
dx
Pre computed derivative along the x axis.
dy
Pre computed derivative along the y axis.

Description Edit

Performs a texture lookup in a given 2D sampler using coordinates Texcoord, may use derivatives dx and dy, may perform shadow comparison, also can unpack normal map from texture through Normal.