AndersO
12-30-2001, 02:08 AM
Hello all and happy new year!.
I'm trying to do some detail texturing on the triangles closest to the viewpoint for the first time.
I'm doing this in a second pass, and I'm fiddeling with different blend modes like, (GL_ONE, GL_ONE) and (GL_ZERO, GL_SRC_COLOR), but either it gets too bright or too dark.
Ideally the detail texture should fade in smoothly as the triangles approaches the viewpoint.
I've tried to change the vertice colors (2nd pass) on the detail triangles depending on distance to the viewpoint but since I got large triangles, a triangle thats close could have the vertices far away.
Well, any help appreciated!
I'm trying to do some detail texturing on the triangles closest to the viewpoint for the first time.
I'm doing this in a second pass, and I'm fiddeling with different blend modes like, (GL_ONE, GL_ONE) and (GL_ZERO, GL_SRC_COLOR), but either it gets too bright or too dark.
Ideally the detail texture should fade in smoothly as the triangles approaches the viewpoint.
I've tried to change the vertice colors (2nd pass) on the detail triangles depending on distance to the viewpoint but since I got large triangles, a triangle thats close could have the vertices far away.
Well, any help appreciated!