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.

9 lines (7 loc) 141 B
const applyDirectionalShadows = ( /* wgsl */ ` directLight.color *= directionalShadows[i]; ` ); export { applyDirectionalShadows };