UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

18 lines (15 loc) 436 B
import { RenderPass } from '../../platform/graphics/render-pass.js'; class RenderPassQuad extends RenderPass { execute() { const { device } = this; device.setDrawStates(device.blendState); this.quad.render(this.rect, this.scissorRect); } constructor(device, quad, rect, scissorRect){ super(device); this.quad = quad; this.rect = rect; this.scissorRect = scissorRect; } } export { RenderPassQuad };