Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

The Default Water Pro Script Breaks Reflection Probes

Discussion in 'General Graphics' started by SomeGuy22, Jun 2, 2018.

  1. SomeGuy22

    SomeGuy22

    Joined:
    Jun 3, 2011
    Posts:
    722
    I've discovered a major conflict with the default water package in regards to reflection probes. This post is for future reference so that anyone who stumbles across this issue can have somewhere to go for a solution. The problem is near identical to this post, where a vague solution was discussed. I've been pulling my hair out for hours so I'm glad to have found the offending script.

    Symptoms
    • Reflection probe cubemaps "seem" to only reflect one side when baked
    • In reality, what happens is that the normals appear inverted within the probes
    • This leads to holes in the floor, strange geometry within reflections, etc.


    Solution

    The issue can be mitigated by simply disabling the "Water" script or gameobject, baking the probes, and then turning the script back on. Hopefully this helps someone in the future.