worldToUV
worldToUV(
worldPos,occSize,occOffset):Node<"vec2">
Defined in: packages/three-flatland/src/lights/coordUtils.ts:8
Convert world position to UV [0,1] space. worldPos.sub(offset).div(size)
Parameters
Section titled “Parameters”worldPos
Section titled “worldPos”Node <"vec2">
occSize
Section titled “occSize”Node <"vec2">
occOffset
Section titled “occOffset”Node <"vec2">
Returns
Section titled “Returns”Node <"vec2">