Skip to content

invalid subscript '_ShadowCoord' at UCTS_DoubleShadeWithFeather #568

@The-RealBobi

Description

@The-RealBobi

Describe the bug
Any build that uses the Toon Shader fails at "Computing Shader Variants" logging the following error:

ERROR: Shader error in 'Toon': invalid subscript '_ShadowCoord' at Studio/<PROJECT>/Library/PackageCache/com.unity.toonshader@55c98bb9b707/Runtime/Legacy/Shaders/UCTS_DoubleShadeWithFeather.cginc(124) (on metal)

WARNING: Shader warning in 'Toon': _FORWARD_PLUS shader keyword has been deprecated. Please update your shaders to use _CLUSTER_LIGHT_LOOP shader keyword instead, otherwise shader compilation times may be negatively affected. at /Users/<user>/Documents/Game Studio/<PROJECT>/Library/PackageCache/com.unity.render-pipelines.universal@1e1527b3a17b/ShaderLibrary/ForwardPlusKeyword.deprecated.hlsl(12)

(...)

To Reproduce
Steps to reproduce the behavior:

  1. Download the Universal 3D Sample Template.
  2. Install the Toon Shader package, and create a material that uses it
  3. Just make a build using the latest Toon Shader version

Expected behavior
To get a functional build that uses the Toon Shader correctly.

Desktop (please complete the following information):

  • OS: macOS Tahoe 26.0
  • Engine: Unity 6000.2.6f2

Additional context

  • I tried moving the project to another drive yet the same error logged (with the same directory: [Studio//Library/PackageCache])
  • I tried deleting the Library folder

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions