Display unhandled materials in debug mode
Add an assertion
Disable water nodes and skybox rendering.

It fixes a lot of glitches.
Factorise transparent state changes.
Factorize solid state changes.