Search Unity

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:
    543
  2. hoesterey

    hoesterey

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