Search Unity

Point Size not working with DrawProcedural

Discussion in 'General Graphics' started by hho_e3d, Apr 26, 2017.

  1. hho_e3d

    hho_e3d

    Joined:
    Apr 24, 2017
    Posts:
    4
    Hi,

    I'm currently working on a project where I have to render large point clouds.

    For this matter I use a compute buffer to store my point positions and render them with a DrawProcedural CommandBuffer call (using point topology). Everything works fine, but now I wanted to change the point size to render larger point sprites (PSIZE / gl_PointSize) and for some reason this does not work anymore. The points are always rendered with pixel size 1.

    I tested shaders with point size before, it works fine with the points stored in a Mesh (using mesh point topology) and drawn with DrawRenderer and DrawMesh.

    I am well aware that they are only supported on OpenGL, I use OpenGL in the Editor and the Player. This is fine for my purposes.