-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
type/featA new featureA new feature
Description
// Instead of
for (let i = 0; i < directionalLights.length; i++) {
sharedUniforms[`uDirectionalLights[${i}].intensity`] = directionalLights[i].intensity;
sharedUniforms[`uDirectionalLights[${i}].color`] = lightColorToSrgb(directionalLights[i]);
}
const uniforms = {
uDirectionalLights: directionalLights.map((light) => {
intensity: light.intensity,
color: lightColorToSrgb(light),
})
}
ctx.submit({ uniforms })Will require checking uniforms value Array.isArray of objects.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/featA new featureA new feature