Search Unity

Question What is PerObjectData.ReflectionProbeData?

Discussion in 'General Graphics' started by GuardHei, Jun 23, 2021.

  1. GuardHei

    GuardHei

    Joined:
    Feb 10, 2018
    Posts:
    89
    Hi, I’m using Srp to write my own render pipeline. I know that to set up per object reflection data in the shader, I can use the flag PerObjectData.ReflectionProbe. However, what is PerObjectData.ReflectionProbeData for?

    In the doc, it says “Setup per-object reflection probe index offset and count”. But, what does this index offset and count refers to? Does that mean we have a reflection probe data array in the shader? If so, what is it’s keyword and how can I access it? I suppose it is used for instancing but I couldn’t find any relevant info about it.