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 782 B
// Do not edit. import { ShaderStore } from "../../Engines/shaderStore.js"; const name = "prePassVertexDeclaration"; 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) uniform previousViewProjection: mat4x4f;varying vCurrentPosition: vec4f;varying vPreviousPosition: vec4f; #endif #endif `; // Sideeffect if (!ShaderStore.IncludesShadersStoreWGSL[name]) { ShaderStore.IncludesShadersStoreWGSL[name] = shader; } /** @internal */ export const prePassVertexDeclarationWGSL = { name, shader }; //# sourceMappingURL=prePassVertexDeclaration.js.map