reindexed_ids = tf.add(vertex_ids, im * clip_space_vertices.shape[1].value)
per_image_vertex_ids.append(reindexed_ids)
barycentric_coordinates = tf.concat(per_image_barycentric_coordinates, axis=0)
vertex_ids = tf.concat(per_image_vertex_ids, axis=0)
// Indexes with each pixel"s clip-space triangle"s extrema (the pixel"s
// "corner points") ids to get the relevant properties for deferred shading.
After Change
b = tf.placeholder_with_default(0, shape=[])
_, per_image_barycentric_coordinates, per_image_vertex_ids = tf.while_loop(condition, iteration, [b, per_image_barycentric_coordinates, per_image_vertex_ids])
barycentric_coordinates = tf.reshape(per_image_barycentric_coordinates.stack(), [-1, 3])
vertex_ids = tf.reshape(per_image_vertex_ids.stack(), [-1, 3])
// Indexes with each pixel"s clip-space triangle"s extrema (the pixel"s
// "corner points") ids to get the relevant properties for deferred shading.