Skip to content

How to draw a dynamic rectangle in filament? #3947

Answered by romainguy
inveders asked this question in Q&A
Discussion options

You must be logged in to vote

You need 4 vertices but 6 indices. You can make the rectangle dynamic either by modifying the vertices every frame or more simply by setting a transform on the Renderable object.

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
11 replies
@romainguy
Comment options

@inveders
Comment options

@romainguy
Comment options

@inveders
Comment options

@cx20
Comment options

Answer selected by inveders
Comment options

You must be logged in to vote
4 replies
@cx20
Comment options

@inveders
Comment options

@paulosensorydata
Comment options

@romainguy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants