Hello experts,
I hope you can help me.
I draw thousands of colored quads by using the Quadstrip and Quads functionality.
The vertices and colors are stored in vbo buffers and it works well and fast.
I use blending to just create a let me say a brightness effect
glBlendFunc(GL.GL_SRC_ALPHA,GL.GL_ZERO) this works also well.
Now I want to adapt the alpha range to the lowest and highest value of my received alpha value
to spread the alpha range exactly to my maximum ranges.
normally :
alpha 0
my lowest value 0,234
my highest value 0,822
alpha 1
I need:
alpha 0 mapped to 0,234
alpha 1 mapped to 0,822
Has anybody an idea how I can solve this so that the change affect directly the drawing of my stored quads in the vbo´s .
Is there a OGL functionality available or is a shader a solution (I never wrote one )
Thanks for your answers