Some shader optimizations