Open underdoeg opened 5 years ago
I don't believe this is supported.
You should ask questions on discourse.bsframework.io, github issues are reserved for bugs and feature requests as per contribution guidelines.
It is some sort of feature request. But yes, there probably isnt an implementation that would work for all render APIs.
Re-opening as a feature request. I'm not sure how well is this feature supported on modern hardware and render backends? I feel like I remember most modern hardware don't support varying point sizes, but I might be misremembering.
AFAIK the implementation is vendor dependent though all of them support it in some way or another. what is not defined is the max allowed point size. But it is part of the official opengl standart.
A little off topic but somewhat related. I usually use it to easily generate billboard point sprites. what method would you recommend with bsf?
It's probably easiest to use instanced rendering to draw the quads, potentially with a custom vertex shader to control the size and orient them towards the view.
Particle system might also be able to handle this out of the box, or at least with a custom shader.
i'll probably have to implement something like that at some point. FYI we develop software for clients that run on a single device. That's why we get away with using things like point size and don't worry about it.
Is there a way to enable GL_VERTEX_PROGRAM_POINT_SIZE within the opengl renderer?