This commit is contained in:
David Rose 2004-07-12 22:31:45 +00:00
parent 915bd53346
commit ef7f69b7b0

View File

@ -218,8 +218,8 @@ do_wave(Geom * geom, LMatrix4f net_trans_mat) {
// Recompute normals based on height
norms.push_back(get_normal(V[0],V[1]));
nindex.push_back(k);
geom->set_normals(norms, G_PER_VERTEX, nindex);
geom->set_normals(norms, G_PER_VERTEX, nindex);
// Vertex color based shading
// ** add shade_mode (high, low , all, none)
c[0] = (_color_scale + _light_color[0] + (height_change / (2 * _amplitude)))/3.0;