shader optims & fixes