6c7dedc2c0193f11ff0d300c0afd49859f85b52cc2f874da98c7b7a72d52d826.json 2.2 KB

1
  1. {"ast":null,"code":"import { Color4 } from \"../../Maths/math.color.js\";\nimport { ShaderMaterial } from \"../shaderMaterial.js\";\nimport \"../../Shaders/color.fragment.js\";\nimport \"../../Shaders/color.vertex.js\";\n/**\n * A material to use for fast depth-only rendering.\n * @since 5.0.0\n */\nexport class OcclusionMaterial extends ShaderMaterial {\n constructor(name, scene) {\n super(name, scene, \"color\", {\n attributes: [\"position\"],\n uniforms: [\"world\", \"viewProjection\", \"color\"]\n });\n this.disableColorWrite = true;\n this.forceDepthWrite = true;\n this.setColor4(\"color\", new Color4(0, 0, 0, 1));\n }\n}","map":{"version":3,"names":["Color4","ShaderMaterial","OcclusionMaterial","constructor","name","scene","attributes","uniforms","disableColorWrite","forceDepthWrite","setColor4"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Materials/Occlusion/occlusionMaterial.js"],"sourcesContent":["import { Color4 } from \"../../Maths/math.color.js\";\nimport { ShaderMaterial } from \"../shaderMaterial.js\";\nimport \"../../Shaders/color.fragment.js\";\nimport \"../../Shaders/color.vertex.js\";\n/**\n * A material to use for fast depth-only rendering.\n * @since 5.0.0\n */\nexport class OcclusionMaterial extends ShaderMaterial {\n constructor(name, scene) {\n super(name, scene, \"color\", {\n attributes: [\"position\"],\n uniforms: [\"world\", \"viewProjection\", \"color\"],\n });\n this.disableColorWrite = true;\n this.forceDepthWrite = true;\n this.setColor4(\"color\", new Color4(0, 0, 0, 1));\n }\n}\n"],"mappings":"AAAA,SAASA,MAAM,QAAQ,2BAA2B;AAClD,SAASC,cAAc,QAAQ,sBAAsB;AACrD,OAAO,iCAAiC;AACxC,OAAO,+BAA+B;AACtC;AACA;AACA;AACA;AACA,OAAO,MAAMC,iBAAiB,SAASD,cAAc,CAAC;EAClDE,WAAWA,CAACC,IAAI,EAAEC,KAAK,EAAE;IACrB,KAAK,CAACD,IAAI,EAAEC,KAAK,EAAE,OAAO,EAAE;MACxBC,UAAU,EAAE,CAAC,UAAU,CAAC;MACxBC,QAAQ,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,OAAO;IACjD,CAAC,CAAC;IACF,IAAI,CAACC,iBAAiB,GAAG,IAAI;IAC7B,IAAI,CAACC,eAAe,GAAG,IAAI;IAC3B,IAAI,CAACC,SAAS,CAAC,OAAO,EAAE,IAAIV,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;EACnD;AACJ","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}