• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

vertex_buffer

  1. Jared Johnson

    SOLVED getting d3d_lighting to work with vertex_buffers (GMS 1.4)

    Hey Gang, I'm working on a game with vertex buffers for static terrain. When using d3d_lighting the only effect i see is the ambient light changes the color of the vertex_buffer, but none of the points of light effect the vertex buffer. Is this a technical limitation of vertex buffers? If so...
  2. Erik Leppen

    GML Drawing a vertex buffer in different colors

    Hi all, I have another question about vertex buffers (that I couldn't find in the manual). I have a vertex format using position (xy) and color (ca) and I want to use it to draw a line segment (as a minimal example): vertex_format_begin(); vertex_format_add_position()...
  3. Erik Leppen

    GML vertex_begin and vertex_end: how are they best used?

    I want to create a set of scripts to draw vertex primitives more easily. So, I want to create a vertex buffer and then call some scripts to put shapes in them. So the idea is: Event code: //create vertex buffer //call script to add positions, colours etc. //call script to add positions, colours...
  4. Jase217

    Shaders Blending a colour with a Vertex Buffer

    This is probably a simple thing to do but I'm just not sure how to do it. Say I have a vertex buffer that I want draw with a tint of red, something like doing this: draw_set_colour(c_red); vertex_submit(currentModel,pr_trianglelist,tex); draw_set_colour(c_white); But this doesn't work, I read...
Top