gpu-curtains
Version:
gpu-curtains is a 3D WebGPU rendering engine. It can be used as a standalone 3D engine, but also includes extra classes focused on mapping 3d objects to DOM elements; It allows users to synchronize values such as position, sizing, or scale between them.
8 lines (7 loc) • 313 B
JavaScript
//#region src/core/shaders/chunks/fragment/body/apply-point-shadows.ts
/** Helper chunk to apply a given {@link core/lights/PointLight.PointLight | PointLight} shadow to its light contribution. */
const applyPointShadows = `
directLight.color *= pointShadows[i];
`;
//#endregion
export { applyPointShadows };