fixing some materials issues (depth-testing, etc)