UNPKG

@phaserjs/phaser

Version:
9 lines (8 loc) 335 B
import { SetUniforms } from "./SetUniforms"; export function BindShader(shader, renderPass) { const uniforms = shader.uniforms; uniforms.set("uProjectionMatrix", renderPass.projectionMatrix); uniforms.set("uCameraMatrix", renderPass.cameraMatrix); shader.updateUniforms(renderPass); return SetUniforms(shader, renderPass); }