Apply stencil engineOption dynamically

Hi there, this is maby a stupid question, but i wan’t to turn on stencil on runtime, instead of passing it to the engine on init, is this possible?

Quick explanation, why i need this: In the scene im rendering objekts can have a highlighting and im then applying the highlightLayer and need stencil, but in all other cases i would like to keep it off, at the moment im going through every objekt on start and checking if it has highlighting set, only to go through them later on, to actually apply it.

Unfortunately no, webgl is not designed to support that :frowning:
But honestly if you do not use it it changes nothing to perf