Display unhandled materials in debug mode
Add an assertion
Disable water, bgnodes and textbillboards.
Factorise transparent state changes.
Factorize solid state changes.
This shouldnt be there