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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.