private bool CreateAmbientCache(Surface geometry, bool needsLighting)
{
if(geometry.AmbientCache != null)
{
return true;
}
// we are going to use it for drawing, so make sure we have the tangents and normals
// TODO: lighting
/*if ( needsLighting && !tri->tangentsCalculated ) {
R_DeriveTangents( tri );
}*/
geometry.AmbientCache = new VertexCache();
geometry.AmbientCache.Data = geometry.Vertices;
return true;
}