playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
94 lines (74 loc) • 2 kB
JavaScript
var lighting_default = (
/* wgsl */
`
// all this functionality that needs to be included for clustered lighting
var areaLightsLutTex1: texture_2d<f32>;
var areaLightsLutTex1Sampler: sampler;
var areaLightsLutTex2: texture_2d<f32>;
var areaLightsLutTex2Sampler: sampler;
// area lights
// omni / spot PCSS is not supported on WebGPU currently, as this is only for non-clustered lights
// #include "shadowPCSSPS"
// clustered lighting
// LOOP - generate shadow evaluation functions for all non-clustered lights
// LOOP - generate light evaluation functions for all non-clustered lights
`
);
export {
lighting_default as default
};