Vizard 7 » Command Index » Vizard objects » texture » <texture>.setBorderRect
7.7

<texture>.setBorderRect

Set border rectangle of texture

<texture>.setBorderRect(  
rect # [left, bottom, right, top]
)  
rect
Specifies the [left, bottom, right, top] rectangle offsets in normalized texture units (0-1), relative to the lower-left corner of the texture.

Remarks

This command will set the inner border rectangle of the texture in normalized (0-1) units. The border rectangle is used by certain texture quad display modes (<node3d>.setTexQuadDisplayMode) to determine the corners of the texture.

The default border rectangle is [0.5, 0.5, 0.5, 0.5], which corresponds to the center of the image.

Return Value

None

See also

<texture>.getBorderRect
<node3d>.setTexQuadDisplayMode