def METHOD_NAME(self):
    # make sure to_rays is giving valid indexes
    s = g.trimesh.scene.Scene()
    res = g.np.array([512, 512])
    for i in range(0, 1000, 79):
        current = res + i
        s.camera.resolution = current
        # get ray index of camera
        rid = s.camera.to_rays()[1]
        assert all(rid.min(axis=0) == 0)
        assert all(rid.max(axis=0) == current - 1)