deferred shader with stencil optimization working state