Archive 17/01/2023.

AttributeAnimation question

alexrass

Is it possible to change the shader options with AttributeAnimation?

cadaver

At this point no, because there are no per-object shader parameters yet (it’s always in the material) and materials don’t have attributes as such.

Ideally we would have a generic mechanism for animating any Variant object, but in case of shader parameters it’s a bit unsafe or would require hacks, because the parameters are stored inside a HashMap, and if you were to delete a parameter from the HashMap that was currently animating, how would that be safeguarded against?

alexrass

Thanx for your engine. Simply amazing.

friesencr

A method could be added to variant: GetOrDefault(key)

if the key doesn’t exist then you get default