Fix material not popping after leaving an object
Declare globel TraceUI in header
Add switch to enable/disable shadow
Refine getters