public Mesh GetMesh(Table.Table table, RubberData rubberData) { var mesh = GetTransformedMesh(table.TableHeight, _data.Height, table.GetDetailLevel()); mesh.Name = rubberData.Name; var preMatrix = new Matrix3D(); preMatrix.SetTranslation(0, 0, -_data.Height); return(mesh.Transform(preMatrix)); }
public RubberMeshGenerator(RubberData data) { _data = data; }
public PbrMaterial GetMaterial(Table.Table table, RubberData rubberData) { return(new PbrMaterial(table.GetMaterial(rubberData.Material), table.GetTexture(rubberData.Image))); }
public RubberHitGenerator(RubberData data, RubberMeshGenerator meshGenerator) { _data = data; _meshGenerator = meshGenerator; }