Some shader optimizations.