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.

17 lines 831 B
// Do not edit. import { ShaderStore } from "../Engines/shaderStore.js"; import "./ShadersInclude/sceneUboDeclaration.js"; import "./ShadersInclude/meshUboDeclaration.js"; const name = "volumetricLightingRenderVolumeVertexShader"; const shader = `#include<sceneUboDeclaration> #include<meshUboDeclaration> attribute position : vec3f;varying vWorldPos: vec4f;@vertex fn main(input : VertexInputs)->FragmentInputs {let worldPos=mesh.world*vec4f(vertexInputs.position,1.0);vertexOutputs.vWorldPos=worldPos;vertexOutputs.position=scene.viewProjection*worldPos;} `; // Sideeffect if (!ShaderStore.ShadersStoreWGSL[name]) { ShaderStore.ShadersStoreWGSL[name] = shader; } /** @internal */ export const volumetricLightingRenderVolumeVertexShaderWGSL = { name, shader }; //# sourceMappingURL=volumetricLightingRenderVolume.vertex.js.map