Is there a way of knowing if a shader material is ready? Just that I am creating a rayMarching tool and thus a lot of shader compilations are done. I want to display a message when the current shader is compiling and hide it when not. Used the onCompiled to hide the message. But sometimes I do a hot swap and the shader does not need compiling and therefore doesnt so the message appears but doesn’t go.
I could just add a .compiled=true to the shader material in the onCompiled event and test for that, but am hesitant to modify core code. So just checking if there is any current method?