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.

25 lines (23 loc) 521 B
const getIBLIndirectRadiance = ({ environmentMap = null }) => { let iblIndirectSpecular = ""; if (environmentMap) { iblIndirectSpecular += /* wgs */ ` radiance += getIBLIndirectRadiance( normal, viewDirection, roughness, specularColor, specularIntensity, iBLGGXFresnel, ${environmentMap.sampler.name}, ${environmentMap.specularTexture.options.name}, envRotation, envSpecularIntensity, );`; } return iblIndirectSpecular; }; export { getIBLIndirectRadiance };