protected override void CreateResources(ResourceFactory factory) { var texture = TextureLoader.Load("v:checker").GetAwaiter().GetResult(); basicMaterial = new BasicMaterial(DrawingContext, texture, true); // var shape1 = new Cube(new Vector3(0, 0, 0), new Vector3(1, 1, 1)); // var shape2 = new Cube(new Vector3(0.8f, 0.8f, 0), new Vector3(1, 1, 1)); // var shape = shape1.Do(ShapeOperation.Intersect, shape2); var shape = new Teapot(); shapeGeometry = new ShapeGeometry(DrawingContext, shape); commandList = factory.CreateCommandList(); }