nine/shader: fixes