X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=scene.h;h=76baf547f77b50e69d6c1881b5b24557e411b766;hb=ecc4dfbfb3adf91d2dfc03ba0ec9a821fcc2390c;hp=6f7c28cbe63b3ac4a0bfd1e6feed6eab22a45f40;hpb=3bb0287d544a4cb75de9afe2927ac8e946f3a18e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/scene.h b/scene.h index 6f7c28c..76baf54 100644 --- a/scene.h +++ b/scene.h @@ -178,10 +178,6 @@ static void scene_add_foliage( scene *pscene, model *mdl, submodel *submodel, v4_copy( src->colour, pvert->colour ); v2_copy( src->uv, pvert->uv ); - - float rel_y = src->co[1] / submodel->bbx[1][1]; - pvert->colour[0] = rel_y; - pvert->colour[2] = rand_hue; } for( u32 i=0; iindice_count; i++ )