protected override void CreateGeometry() { var sideTexture = new GeometryTextureIndex(1); var topTexture = new GeometryTextureMultiplier(_size); var cuboidTexture = new GeometryTextureCuboidWrapper(); cuboidTexture.AddSide(new[] { CuboidSide.Back, CuboidSide.Front, CuboidSide.Left, CuboidSide.Right }, sideTexture); cuboidTexture.AddSide(new[] { CuboidSide.Top, CuboidSide.Bottom }, topTexture); Geometry.AddVertices(CuboidComposer.Create(_size.X, 0.2f, _size.Y, cuboidTexture)); }
protected override void CreateGeometry() { var side1Texture = new GeometryTextureMultiplier(new Vector2(3, 2)); var side2Texture = new GeometryTextureMultiplier(new Vector2(2, 2)); var doorTexture = new GeometryTextureIndex(1); var topTexture = new GeometryTextureMultiplier(new Vector2(8, 4)); var cuboidTexture = new GeometryTextureCuboidWrapper(); cuboidTexture.AddSide(new[] { CuboidSide.Back, CuboidSide.Front }, side1Texture); cuboidTexture.AddSide(new[] { CuboidSide.Right }, side2Texture); cuboidTexture.AddSide(new[] { CuboidSide.Left }, doorTexture); cuboidTexture.AddSide(new[] { CuboidSide.Top, CuboidSide.Bottom }, topTexture); Geometry.AddVertices(CuboidComposer.Create(4f, 3f, 3f, cuboidTexture)); }