Search Unity

Question Is there a way to update a Reflection Probe immediately?

Discussion in 'High Definition Render Pipeline' started by NickJVaccaro, Apr 6, 2023.

  1. NickJVaccaro

    NickJVaccaro

    Joined:
    Apr 29, 2013
    Posts:
    7
    Hello!

    I have some Reflection Probes in a level, and I want to essentially "bake" them at runtime, when the level loads.

    They are set to Realtime/On Demand, and I can update them using HDAdditionalReflectionData.RequestRenderNextUpdate(), but this queues them to update the next time they are within the camera's frustum. This results in big framerate dips when they finally come into view. Is there any way to update them immediately, not when they next influence the camera?

    I've tried ReflectionProbe.RenderProbe(), as I believe it does what I want, but that doesn't work in HDRP. Any answer (even if it's just a "no, not possible") is appreciated. Thanks!