sp614x / optifine

1.81k stars 416 forks source link

[CEM Animation] Transparency/Opacity #5420

Open ZenithRogue opened 3 years ago

ZenithRogue commented 3 years ago

CEM animation controlled part transparency/opacity

Model parts transparency/opacity should be controllable by CEM animation. This should propagate down through a part's submodels, unless otherwise animated.

Potential Variable names:

(These are just suggestions for the variable, only one is needed) variable meaning
part.o Opacity
part.op Opacity
part.opacity Opacity
part.t Transparency
part.transparency Transparency

Demo code:

"animations": [
    "this.o": "..."
],
ZenithRogue commented 3 years ago

You could also define transparency outside of animation with


"transparency": "50" //0-100