FANDOM


Cubemap

Name Edit

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

Synopsis Edit

vector4 texCUBE(vector3 Coord, vector1 Shadow, vector3 dx, vector3 dy);
vector3 texCUBE(vector3 Coord, vector1 Shadow, vector3 dx, vector3 dy);
vector1 texCUBE(vector3 Coord, vector1 Shadow, vector3 dx, vector3 dy);

Parameters Edit

Coord

Coordinates to perform the lookup.
Shadow
It is used to perform a shadow comparison.
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 CUBE sampler using coordinates Coord, may use derivatives dx and dy, also may perform shadow comparison through Shadow.

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.