Are we skipping default sunPosition in case we have hdr and never need it? creating blank components.skybox() crashes renderer ATM ypeError: Spread syntax requires ...iterable not be null or undefined and requires at least components.skybox({ sunPosition: [2, 2, 2] }),
Since sunPosition and envMap are mutually exclusive, they are not added when creating the component: we don't want sky texture/pass to be created if we then add envMap. Added checks.
Are we skipping default sunPosition in case we have hdr and never need it? creating blank
components.skybox()
crashes renderer ATMypeError: Spread syntax requires ...iterable not be null or undefined
and requires at leastcomponents.skybox({ sunPosition: [2, 2, 2] }),