Exemplo n.º 1
0
 public MeshRenderer(string name, MeshData meshData, ImageSharpTexture textureData, ImageSharpTexture alphaTexture, MaterialPropsAndBuffer materialProps)
 {
     _name             = name;
     _meshData         = meshData;
     _centeredBounds   = meshData.GetBoundingBox();
     _objectCenter     = _centeredBounds.GetCenter();
     _textureData      = textureData;
     _alphaTextureData = alphaTexture;
     _materialProps    = materialProps;
 }
Exemplo n.º 2
0
 public MeshRenderer(AssetRef <MeshData> meshAsset, AssetRef <ImageSharpTexture> textureAsset)
 {
     _meshAsset     = meshAsset;
     _textureAsset  = textureAsset;
     _materialProps = CommonMaterials.Brick;
 }