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.

25 lines 724 B
// Do not edit. import { ShaderStore } from "../../Engines/shaderStore.js"; const name = "prePassDeclaration"; const shader = `#ifdef PREPASS #ifdef PREPASS_LOCAL_POSITION varying vPosition : vec3f; #endif #ifdef PREPASS_DEPTH varying vViewPos: vec3f; #endif #ifdef PREPASS_NORMALIZED_VIEW_DEPTH varying vNormViewDepth: f32; #endif #if defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) varying vCurrentPosition: vec4f;varying vPreviousPosition: vec4f; #endif #endif `; // Sideeffect if (!ShaderStore.IncludesShadersStoreWGSL[name]) { ShaderStore.IncludesShadersStoreWGSL[name] = shader; } /** @internal */ export const prePassDeclarationWGSL = { name, shader }; //# sourceMappingURL=prePassDeclaration.js.map