L
Linas Sidlauskas
Guest
Hey guys,
I am starting out with Vertex Buffers, I do not fully understand them yet, but I am managing to get things working. My issue is when I set vertex_colour ("vertex_colour(_vb, $000000, 0.1);"), although alpha is constant, when it is rendered in the game, you can see it changing. I would try and use 'vertex_rgb()' function, but I don't really understand how you would set opacity as it seems to take only hex values. Can you guys suggest a good way of setting opacity in this scenario?
My code, which creates triangles around a player. At the bottom you can see opacity being set to 0.1, but the next screenshot shows that every ring around player has differing opacity:
In game screenshot, I am trying to have every ring around the player to be of 0.1 opacity, but it is not constant. Solid black lines going off into the distance are part of a different function, but they are both nested in the same event.
I am starting out with Vertex Buffers, I do not fully understand them yet, but I am managing to get things working. My issue is when I set vertex_colour ("vertex_colour(_vb, $000000, 0.1);"), although alpha is constant, when it is rendered in the game, you can see it changing. I would try and use 'vertex_rgb()' function, but I don't really understand how you would set opacity as it seems to take only hex values. Can you guys suggest a good way of setting opacity in this scenario?
My code, which creates triangles around a player. At the bottom you can see opacity being set to 0.1, but the next screenshot shows that every ring around player has differing opacity:
In game screenshot, I am trying to have every ring around the player to be of 0.1 opacity, but it is not constant. Solid black lines going off into the distance are part of a different function, but they are both nested in the same event.