|
 |
I am seeking a way to specify per-vertex colors in a polygon mesh in
POVRay. In OpenGL I'd do it with something like
glBegin( GL_POLYGON );
for ( p = p0; p < p1; p++ ) {
glColor4f( v_red[p], // red
v_green[p], // green
v_blue[p], // blue
1.0 ); // alpha
glNormal3f( vnx[p], vny[p], vnz[p] );
glVertex3f( x[p], y[p], z[p] );
}
glEnd();
Clues, RTFMs, and suggestions are all welcome.
Please remove the "-nospam" from the Reply-To: address if responding
directly.
Thanx.
spl
Post a reply to this message
|
 |