added some optimization to gloss\emission shader, so now can render to flash