1234567891011121314151617181920 |
- import { Color4 } from "../../Maths/math.color.js";
- import { ShaderMaterial } from "../shaderMaterial.js";
- import "../../Shaders/color.fragment.js";
- import "../../Shaders/color.vertex.js";
- /**
- * A material to use for fast depth-only rendering.
- * @since 5.0.0
- */
- export class OcclusionMaterial extends ShaderMaterial {
- constructor(name, scene) {
- super(name, scene, "color", {
- attributes: ["position"],
- uniforms: ["world", "viewProjection", "color"],
- });
- this.disableColorWrite = true;
- this.forceDepthWrite = true;
- this.setColor4("color", new Color4(0, 0, 0, 1));
- }
- }
- //# sourceMappingURL=occlusionMaterial.js.map
|