UNPKG

playcanvas

Version:

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

13 lines (12 loc) 248 B
var falloffLinear_default = ( /* glsl */ ` float getFalloffLinear(float lightRadius, vec3 lightDir) { float d = length(lightDir); return max(((lightRadius - d) / lightRadius), 0.0); } ` ); export { falloffLinear_default as default };