UNPKG

playcanvas

Version:

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

10 lines (9 loc) 364 B
var particle_lighting_default = ` let light: vec3f = negNormal.x * uniform.lightCube[0] + posNormal.x * uniform.lightCube[1] + negNormal.y * uniform.lightCube[2] + posNormal.y * uniform.lightCube[3] + negNormal.z * uniform.lightCube[4] + posNormal.z * uniform.lightCube[5]; rgb = rgb * light; `; export { particle_lighting_default as default };