1
0
Fork 0

misc tweaks.

This commit is contained in:
curt 2002-10-09 14:15:08 +00:00
parent f54302e9e9
commit 257c065d81
2 changed files with 6 additions and 3 deletions

View file

@ -160,7 +160,7 @@ static int gen_vasi_light_map() {
// top half white, bottom half red
env_map[i][j][0] = 255;
if ( i < half_res ) {
if ( i >= half_res ) {
env_map[i][j][1] = 255;
env_map[i][j][2] = 255;
} else {

View file

@ -49,10 +49,13 @@ ssgLeaf *gen_directional_light( sgVec3 pt, sgVec3 dir, sgVec3 up,
vl->add( tmp3 );
sgAddVec3( tmp3, perp );
vl->add( tmp3 );
// sgSubVec3( tmp3, up );
// vl->add( tmp3 );
nl->add( dir );
nl->add( dir );
nl->add( dir );
// nl->add( dir );
sgVec4 color;
sgSetVec4( color, 1.0, 1.0, 1.0, 1.0 );
@ -60,6 +63,7 @@ ssgLeaf *gen_directional_light( sgVec3 pt, sgVec3 dir, sgVec3 up,
sgSetVec4( color, 1.0, 1.0, 1.0, 0.0 );
cl->add( color );
cl->add( color );
// cl->add( color );
/*
// temporarily do back face
@ -91,8 +95,7 @@ ssgLeaf *gen_directional_light( sgVec3 pt, sgVec3 dir, sgVec3 up,
sgSetVec2( tmp2, 1.0, 1.0 );
tl->add( tmp2 );
sgSetVec2( tmp2, 0.0, 1.0 );
tl->add( tmp2 );
*/
tl->add( tmp2 ); */
ssgLeaf *leaf =
new ssgVtxTable ( GL_TRIANGLES, vl, nl, NULL, cl );