Reading attributes from shader.