ARB_point_sprite and shaders

Hello,

I wanted to know if it is possible to render point sprites using shaders. If possible, how do we render it in the shader?

Thank you!

Kinda depends on the hw.

Anything less than sm4 hw you can roll your own with a vertex shader trick by stuffing your quad vertex offset/index into you per-vertex data.

With anything greater than sm4 hw you can create your own axis aligned quad in a geometry shader.

Also with SM4 you can use instanced rendering. :smiley:

Sure it’s possible:
http://lumina.sourceforge.net/Tutorials/Point_sprites.html

Thanks oc2k1! It work as per the link you provided.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.