• Hey! Guest! The 40th (!!!) GMC Jam will take place between February 25th, 12:00 UTC to March 1st 12:00 UTC. Why not join in this very special anniversary jam! Click here to find out more!

3D Change alpha of Vertex Buffer without rebuilding vertex_colour?

hdarren

Member
I'm currently getting to grips with making 3D games and built a small platformer. The platforms are blocks built using the vertex_begin format. Something I noticed though is that the alpha of the block is built in the creation of the buffer using vertex_colour(). For the sake of performance is it possible to change the alpha without having to rebuild the buffer each time? For example if I want to draw a single platform fading out. So basically something I can use in the Draw event like draw_set_alpha() but would work on that particular object? Such as a shader?
 

rytan451

Member
You could remove the block from the main buffer, and use a shader to draw that one block with the specified alpha. Unfortunately, it isn't as easy as just setting the draw alpha.
 
Top