From: Brian P. <br...@va...> - 2001-03-07 04:44:01
|
Gareth Hughes wrote: > > Jeff Epler wrote: > > > > By the way, can someone tell me what the DST instruction is good for? > > I don't recall seeing it used in any of their example vector shader > > snippets. > > It computes the distance attenuation vector from two scalars. Result is > (1, d, d^2, 1/d). It could be used for computing the GL_CONSTANT/LINEAR/QUADRATIC_ATTENUATION factors in lighting and the point size for GL_EXT_point_parameters, among other things. -Brian |