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.

18 lines 838 B
// Do not edit. import { ShaderStore } from "../../Engines/shaderStore.js"; const name = "clusteredLightingFunctions"; const shader = `struct ClusteredLight {vec4 vLightData;vec4 vLightDiffuse;vec4 vLightSpecular;vec4 vLightDirection;vec4 vLightFalloff;};ClusteredLight getClusteredLight(sampler2D lightDataTexture,int index) {return ClusteredLight( texelFetch(lightDataTexture,ivec2(0,index),0), texelFetch(lightDataTexture,ivec2(1,index),0), texelFetch(lightDataTexture,ivec2(2,index),0), texelFetch(lightDataTexture,ivec2(3,index),0), texelFetch(lightDataTexture,ivec2(4,index),0) );} `; // Sideeffect if (!ShaderStore.IncludesShadersStore[name]) { ShaderStore.IncludesShadersStore[name] = shader; } /** @internal */ export const clusteredLightingFunctions = { name, shader }; //# sourceMappingURL=clusteredLightingFunctions.js.map