Draw Material

Draw Material

Choose your operating system:

Windows

macOS

Linux

Draws a material-textured quad on the HUD.

Target is HUD

Draw Material
Target
Material
Select Asset
Screen X
Screen Y
Screen W
Screen H
Material U
Material V
Material UWidth
Material VHeight
Scale
Scale Position
Rotation
Rot Pivot
X0.0
Y0.0

Inputs

In
Exec
Target
HUD Object Reference
Material
Material Interface Object Reference

Material to use

Screen X
Float (single-precision)

Screen-space X coordinate of upper left corner of the quad.

Screen Y
Float (single-precision)

Screen-space Y coordinate of upper left corner of the quad.

Screen W
Float (single-precision)

Screen-space width of the quad (in pixels).

Screen H
Float (single-precision)

Screen-space height of the quad (in pixels).

Material U
Float (single-precision)

Texture-space U coordinate of upper left corner of the quad

Material V
Float (single-precision)

Texture-space V coordinate of upper left corner of the quad.

Material UWidth
Float (single-precision)

Texture-space width of the quad (in normalized UV distance).

Material VHeight
Float (single-precision)

Texture-space height of the quad (in normalized UV distance).

Scale
Float (single-precision)

Amount to scale the entire texture (horizontally and vertically)

Scale Position
Boolean

Whether the "Scale" parameter should also scale the position of this draw call.

Rotation
Float (single-precision)

Amount to rotate this quad

Rot Pivot
Vector 2D Structure

Location (as proportion of quad, 0-1) to rotate about

Outputs

Out
Exec