UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

28 lines 872 B
// Do not edit. import { ShaderStore } from "../../Engines/shaderStore.js"; import "./packingFunctions.js"; import "./bayerDitherFunctions.js"; const name = "shadowMapFragmentExtraDeclaration"; const shader = `#if SM_FLOAT==0 #include<packingFunctions> #endif #if SM_SOFTTRANSPARENTSHADOW==1 #include<bayerDitherFunctions> uniform vec2 softTransparentShadowSM; #endif varying float vDepthMetricSM; #if SM_USEDISTANCE==1 uniform vec3 lightDataSM;varying vec3 vPositionWSM; #endif uniform vec3 biasAndScaleSM;uniform vec2 depthValuesSM; #if defined(SM_DEPTHCLAMP) && SM_DEPTHCLAMP==1 varying float zSM; #endif `; // Sideeffect if (!ShaderStore.IncludesShadersStore[name]) { ShaderStore.IncludesShadersStore[name] = shader; } /** @internal */ export const shadowMapFragmentExtraDeclaration = { name, shader }; //# sourceMappingURL=shadowMapFragmentExtraDeclaration.js.map