fixed painting bug in shader.