reworked lighting uniforms
[carveJwlIkooP6JGAAIwe30JlM.git] / scene.h
diff --git a/scene.h b/scene.h
index 6f7c28cbe63b3ac4a0bfd1e6feed6eab22a45f40..76baf547f77b50e69d6c1881b5b24557e411b766 100644 (file)
--- 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; i<submodel->indice_count; i++ )