Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Strange issue with shader breaking over time.

Discussion in '5.5 Beta' started by hoesterey, Nov 30, 2016.

  1. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
  2. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    659
    This is the latest line of code causing the error:
    float3 worldPos = (i.cameraToFarPlane * depth01) + _WorldSpaceCameraPos;

    creates this error:
    array reference cannot be used as an I-value; not natively addressable.

    until reimport, then the shader works fine.