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 892 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 softTransparentShadowSM: vec2f; #endif varying vDepthMetricSM: f32; #if SM_USEDISTANCE==1 uniform lightDataSM: vec3f;varying vPositionWSM: vec3f; #endif uniform biasAndScaleSM: vec3f;uniform depthValuesSM: vec2f; #if defined(SM_DEPTHCLAMP) && SM_DEPTHCLAMP==1 varying zSM: f32; #endif `; // Sideeffect if (!ShaderStore.IncludesShadersStoreWGSL[name]) { ShaderStore.IncludesShadersStoreWGSL[name] = shader; } /** @internal */ export const shadowMapFragmentExtraDeclarationWGSL = { name, shader }; //# sourceMappingURL=shadowMapFragmentExtraDeclaration.js.map