VTexPos:
Filter:
Scintillator/Classes (extension) | Quarks > Scintillator > VGens > Intrinsics

VTexPos
ExtensionExtension

VGen providing geometry-specific texture coordinates for image sampling.

Description

VTexPos provides a texture coordinate representing the position on the underlying rendered geometry (currently only a full-screen rectangle). Unlike vertex coordinates such as those provided by VNormPos, texture coordinates vary from [0, 1] with 0, 0 in the upper-left hand corner. When rendering the full-screen rectangle they can be thought of as VFragCoord scaled to resolution-independent units. TexPos is most commonly seen as in input to the VSampler for rendering images.

Supported Rates: shape, pixel

Class Methods

.sr

.pr

Make a VTexPos VGen at requested rate.

dimensions

inputoutput
none2

Returns:

A texture coordinate usable in a ScinSampler.

Examples