Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    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:
    571
  2. hoesterey

    hoesterey

    Joined:
    Mar 19, 2010
    Posts:
    571
    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.
     
unityunity