
Point sprite distance attenuation.
Posted Sunday, 5 September, 2010 - 18:44 by hannesh inHi!
I'm trying to get my point sprites to get smaller in the distance, in C I can do this with
glPointParameterfvSGIS(GL_DISTANCE_ATTENUATION_SGIS, quad);
So in OpenTK I tried
GL.PointParameter(PointParameterName.PointDistanceAttenuation, (int)All.QuadraticAttenuation);
This causes an InvalidEnum error though.
What am I doing wrong?


Comments
Re: Point sprite distance attenuation.
GL_POINT_DISTANCE_ATTENUATION
params is an array of three floating-point values that specify the coefficients used for scaling the computed point size. The default values are { 1,0,0 }
Re: Point sprite distance attenuation.
Argh, I should've seen that one.
Thanks.