UNPKG

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) 355 B
//#region src/core/shaders/chunks/fragment/body/apply-directional-shadows.ts /** Helper chunk to apply a given {@link core/lights/DirectionalLight.DirectionalLight | DirectionalLight} shadow to its light contribution. */ const applyDirectionalShadows = ` directLight.color *= directionalShadows[i]; `; //#endregion export { applyDirectionalShadows };