fixed a regression in the handling of custom attributes introduced in the previous commit, cleaned up and refactored the code.
make area lights fully invisible, tweaked frame pixel format and tile size, more vegetation and rock materials tweaks.