Exemplo n.º 1
0
 public PipelineState()
 {
     shaderState = new ShaderState();
     blending    = new Blending();
     depthTest   = new DepthTest();
     depthWrite  = new DepthWrite();
     culling     = new Culling();
     stencilTest = new StencilTest();
     vaoState    = new VaoState();
 }
Exemplo n.º 2
0
 bool isDifferent(Culling other)
 {
     if (enabled != other.enabled)
     {
         return(true);
     }
     if (cullMode != other.cullMode)
     {
         return(true);
     }
     if (frontFaceDir != other.frontFaceDir)
     {
         return(true);
     }
     return(false);
 }