UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

10 lines (9 loc) 230 B
var falloffLinear_default = ` fn getFalloffLinear(lightRadius: f32, lightDir: vec3f) -> f32 { let d: f32 = length(lightDir); return max(((lightRadius - d) / lightRadius), 0.0); } `; export { falloffLinear_default as default };