Example #1
0
 public Pass(Pass p)
     : this(p.name, p.technique)
 {
     filter       = p.filter;
     renderTarget = p.renderTarget;
     clearTarget  = p.clearTarget;
     clearColor   = p.clearColor;
     clearMask    = p.clearMask;
 }
Example #2
0
        public Pass(string name, string technique)
        {
            myName                     = name;
            myTechnique                = technique;
            renderTarget               = null;
            clearTarget                = false;
            myRenderQueues             = new Dictionary <ulong, BaseRenderQueue>();
            myVisibleRenderablesByType = new Dictionary <string, List <Renderable> >();
            preCommands                = new RenderCommandList();
            postCommands               = new RenderCommandList();
            filter                     = new NullFilter();

            clearTarget = false;
            clearColor  = new Color4(0.2f, 0.2f, 0.2f, 1.0f);
            clearMask   = ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit;
        }