Search Unity

Question Upgrading VR project from 2020.3.8f1 to 2020.3.10f1 turns water black and OpenGL error

Discussion in 'VR' started by dhousky, Jun 2, 2021.

  1. dhousky

    dhousky

    Joined:
    Mar 1, 2021
    Posts:
    5
    I recently upgraded my company's project (targeting Oculus Quest 1 and 2) from 2018 to 2020.3.8f1. The upgrade went relatively smoothly. I noticed afterwards that 2020.3.10f1 was the LTS for 2020, and promptly upgraded to that version from 2020.3.8f1. During my tests I found that all dynamic water in our app was now black - clearly not loading correctly. The only error I could find in adb logs was "OpenGL Error: Invalid texture unit!" spammed pretty heavily. I assume this is associated with the water not loading correctly. The water uses a custom shader on a material.

    Does anyone have ideas on what could've caused this issue? I would've thought 2 minor versions would be a trivial upgrade, but it turned out to be more trouble than the entire 2018->2020 upgrade! Any help is appreciated.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,063
    Did you try reimporting the textures/materials and/or making new materials already?