playcanvas
Version:
PlayCanvas WebGL game engine
9 lines (7 loc) • 352 B
JavaScript
var particle_lightingPS = `
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_lightingPS as default };