moved calc from frag to vertex