Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Terrain GPU Instancing Issue (2019.2)

Discussion in 'General Graphics' started by bentontr, Aug 23, 2019.

  1. bentontr

    bentontr

    Joined:
    Jun 9, 2017
    Posts:
    39
    Hello there,
    I recently discovered a small problem while experimenting with terrain GPU instancing. I noticed that when I enable it, the geometry of the terrain changes very slightly. I have a camera that detects collisions via raycasting, however, when raycasting against the GPU instanced terrain the results seem to be inaccurate. Almost as if the collider is actually using the geometry that would normally be created on the CPU. Is this expected behavior or a bug?

    https://i.imgur.com/lRpx85v.mp4
     
  2. bentontr

    bentontr

    Joined:
    Jun 9, 2017
    Posts:
    39
    Turns out it was an issue with my terrain shader, sorry!