@animech-public/playcanvas
Version:
PlayCanvas WebGL game engine
2 lines (1 loc) • 475 B
JavaScript
import{CULLFACE_NONE as t}from"../../platform/graphics/constants.js";import{DepthState as s}from"../../platform/graphics/depth-state.js";import{RenderPass as e}from"../../platform/graphics/render-pass.js";class r extends e{constructor(t,s,e,r){super(t),this.quad=s,this.rect=e,this.scissorRect=r}execute(){const{device:e}=this;e.setCullMode(t),e.setDepthState(s.NODEPTH),e.setStencilState(null,null),this.quad.render(this.rect,this.scissorRect)}}export{r as RenderPassQuad};