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.

23 lines 881 B
// Do not edit. import { ShaderStore } from "../../Engines/shaderStore.js"; const name = "clusteredLightingFunctions"; const shader = `struct ClusteredLight {vLightData: vec4f, vLightDiffuse: vec4f, vLightSpecular: vec4f, vLightDirection: vec4f, vLightFalloff: vec4f,} fn getClusteredLight(lightDataTexture: texture_2d<f32>,index: u32)->ClusteredLight {return ClusteredLight( textureLoad(lightDataTexture,vec2u(0,index),0), textureLoad(lightDataTexture,vec2u(1,index),0), textureLoad(lightDataTexture,vec2u(2,index),0), textureLoad(lightDataTexture,vec2u(3,index),0), textureLoad(lightDataTexture,vec2u(4,index),0) );} `; // Sideeffect if (!ShaderStore.IncludesShadersStoreWGSL[name]) { ShaderStore.IncludesShadersStoreWGSL[name] = shader; } /** @internal */ export const clusteredLightingFunctionsWGSL = { name, shader }; //# sourceMappingURL=clusteredLightingFunctions.js.map