formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders
Description
Gets the 2d image space coordinate of the current pixel.
The pixel in the upper left corner of the rendering has
the coordinate (0.0, 0.0). The pixel in the upper right
corner of the rendering has the coordinate (1.0, 0.0).
The pixel in the lower left corner of the rendering has
the coordinate (0.0, 1.0). The pixel in the lower right
corner of the rendering has the coordinate (1.0, 1.0).
Note, that this function only has a meaningful use when
called from a shader's pixel function. When called from
any other place, the resulting xy value is undefined.
Plugin Prototype
void fz_shdr_get_ispace_xy(
fz_xy_td * | xy ) |
Parameters
xy [Result]
The current pixel's image space coordinate
Returns
none
Availability
5.0.0.0
Function Set
Defined in