VFragCoord:
Filter:
Scintillator/Classes (extension) | Quarks > Scintillator > VGens > Built-In

VFragCoord
ExtensionExtension

Fragment shader pixel coordinates VGen.

Description

FragCoord exposes the underlying GLSL primitive gl_FragCoord. It returns the position of the running fragment shader in pixel dimensions, with the origin in the upper left hand corner of the screen. Note that the FragCoord returns screen-relative coordinates, not geometry coordinates.

Class Methods

.pr

dimensions

inputoutput
none2

Examples