Previous Up Next

M3shiftTextureXY
The function takes a mesh or a topology as a parameter.
Performs a translation on the (integer) texture coordinates of the object's polygons that use a given material
This translation applies to texture #1.
The active topology associated with the mesh is automatically put in 'dynamic' mode (as opposed to 'static').
This function acts only on the mesh’s active topology.

I M3shiftTextureXY (
S3d _session_
H3d _object_
HMat3d _material_
I _dx_
I _dy_
)
Parameters

_session_
3D Session
_object_
Mesh or topology
_material_
Material
_dx_
Translation in X
_dy_
Translation in Y
Return value

0 if successful, otherwise nil