Fixed the type error in shader.