Fix Z-writing bug with transparent shaders