playcanvas
Version:
PlayCanvas WebGL game engine
91 lines (70 loc) • 2.04 kB
JavaScript
// functionality includes for lighting / shadowing code.
var lightingPS = /* 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 { lightingPS as default };