You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
code: github link
I have this code that should render each "decal" (a decal is a quad + texture), but only the last one is rendered.
i tried to reuse the buffer for the quad position and I think this is the main issue, but I don't really want to create a new buffer for each decal instance as they are created and destroyed each frame.
you can try my code by running cargo run --bin decal while in the repo root. Then type 5 and you should see two patterns on the screen next to each other making a rectangle (when it will work)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
code: github link
I have this code that should render each "decal" (a decal is a quad + texture), but only the last one is rendered.
i tried to reuse the buffer for the quad position and I think this is the main issue, but I don't really want to create a new buffer for each decal instance as they are created and destroyed each frame.
you can try my code by running
cargo run --bin decal
while in the repo root. Then type 5 and you should see two patterns on the screen next to each other making a rectangle (when it will work)Beta Was this translation helpful? Give feedback.
All reactions