Open benzsuankularb opened 8 months ago
Changing "color" in the material on runtime won't work.
It seems like propsPrimitive didn't have color property inherited from Material class. (https://github.com/0beqz/realism-effects/blob/main/src/gbuffer/material/GBufferMaterial.js)
propsPrimitive
Material
let props = Object.keys(gBufferMaterial) props = props.filter( key => !key.startsWith("_") && !key.startsWith("is") && key !== "uuid" && key !== "type" && key !== "transparent" ) const propsPrimitive = props.filter( key => typeof gBufferMaterial[key] === "string" || typeof gBufferMaterial[key] === "number" )
Thanks for the reporting, I'll look into fixing it.
Changing "color" in the material on runtime won't work.
It seems like
propsPrimitive
didn't have color property inherited fromMaterial
class. (https://github.com/0beqz/realism-effects/blob/main/src/gbuffer/material/GBufferMaterial.js)