formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders
Description
Gets the value of the 2d texture space coordinate of a pixel.
This value is determined by the texture map control attribute
associated with a face of an object. When implementing a
2d (wrapped) shader, this function should be called and
the resulting xy value should be used to determine the
pattern of the shader.
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_tspace_st(
fz_xy_td * | st ) |
Parameters
st [Result]
The current pixel's 2d texture space coordinate
Returns
none
Availability
5.0.0.0
Function Set
Defined in