Code Monkey home page Code Monkey logo

Comments (3)

kaku1923 avatar kaku1923 commented on May 21, 2024 2

@cn914287516
I encountered the same error when I upgrade to URP 7.3.1,
and the error appears when I enable the shadow cascades.

I also found that there are two ways to fix it.

  1. Downgrade to URP 7.1.8
  2. In UniversalToonBody.hlsl
    line 558:
-#  ifdef _MAIN_LIGHT_SHADOWS
+#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)

line 562:

-#  ifdef _ADDITIONAL_LIGHTS
+#if defined(REQUIRES_WORLD_SPACE_POS_INTERPOLATOR)

line 997:

-#  ifdef _MAIN_LIGHT_SHADOWS
+#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)

line 1001:

-#  ifdef _ADDITIONAL_LIGHTS
+#if defined(REQUIRES_WORLD_SPACE_POS_INTERPOLATOR)

from unitychantoonshaderver2_project.

Personuo avatar Personuo commented on May 21, 2024 2

@cn914287516
I encountered the same error when I upgrade to URP 7.3.1,
and the error appears when I enable the shadow cascades.

I also found that there are two ways to fix it.

  1. Downgrade to URP 7.1.8
  2. In UniversalToonBody.hlsl
    line 558:
-#  ifdef _MAIN_LIGHT_SHADOWS
+#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)

line 562:

-#  ifdef _ADDITIONAL_LIGHTS
+#if defined(REQUIRES_WORLD_SPACE_POS_INTERPOLATOR)

line 997:

-#  ifdef _MAIN_LIGHT_SHADOWS
+#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)

line 1001:

-#  ifdef _ADDITIONAL_LIGHTS
+#if defined(REQUIRES_WORLD_SPACE_POS_INTERPOLATOR)

Thank you for help! I try this and success!
But I use toony shader for my project now.

from unitychantoonshaderver2_project.

Nobuyuki-Kobayashi avatar Nobuyuki-Kobayashi commented on May 21, 2024

Fixed in https://github.com/unity3d-jp/UnityChanToonShaderVer2_Project/tree/e7ee9605f98ec3ea9575a52511a9aee0e535a73a

from unitychantoonshaderver2_project.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.