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 758 B
// Do not edit. import { ShaderStore } from "../../Engines/shaderStore.js"; const name = "prePassVertexDeclaration"; const shader = `#ifdef PREPASS #ifdef PREPASS_LOCAL_POSITION varying vec3 vPosition; #endif #ifdef PREPASS_DEPTH varying vec3 vViewPos; #endif #ifdef PREPASS_NORMALIZED_VIEW_DEPTH varying float vNormViewDepth; #endif #if defined(PREPASS_VELOCITY) || defined(PREPASS_VELOCITY_LINEAR) uniform mat4 previousViewProjection;varying vec4 vCurrentPosition;varying vec4 vPreviousPosition; #endif #endif `; // Sideeffect if (!ShaderStore.IncludesShadersStore[name]) { ShaderStore.IncludesShadersStore[name] = shader; } /** @internal */ export const prePassVertexDeclaration = { name, shader }; //# sourceMappingURL=prePassVertexDeclaration.js.map