formZ SDK | 5.0 API Reference | Project | Modeling | Rendering | Shaders

# fz_shdr_get_tspace_pnt

Description

Gets the value of the 3d texture space coordinate of a pixel. This value is determined by the texture map control attribute associated with a face of an object. The xyz value is relative to the texture map control origin and is also adjusted by the texture map control rotation and solid size parameters. When implementing a 3d (solid) shader, this function should be called and the resulting xyz 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 xyz value is undefined.

Plugin Prototype

void fz_shdr_get_tspace_pnt(

fz_xyz_td* | pnt )

Parameters

pnt [Result]

The current pixel's 3d texture space coordinate

Returns

none

Availability

5.0.0.0

Function Set

fz_shdr_fset

Defined in

fz_rzne_shdr_api.h