Ejemplo n.º 1
0
 protected override bool OnAttach(IRenderTechnique technique)
 {
     buffer          = Collect(new VolumeCubeBufferModel());
     buffer.Geometry = BoxMesh;
     buffer.Topology = PrimitiveTopology.TriangleList;
     cubeBackPass    = technique[DefaultPassNames.Backface];
     return(true);
 }
Ejemplo n.º 2
0
 protected override void OnDetach()
 {
     buffer = null;
     base.OnDetach();
 }