Skip to content

tentative#852

Closed
sindharta-tanuwijaya wants to merge 5 commits into
masterfrom
fix-again6.6
Closed

tentative#852
sindharta-tanuwijaya wants to merge 5 commits into
masterfrom
fix-again6.6

Conversation

@sindharta-tanuwijaya

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Unity Toon Shader’s URP lighting variant handling by renaming the Forward+ keyword/macro usage to the newer Cluster Light Loop naming, aligning shader variants and conditional code paths.

Changes:

  • Replace USE_FORWARD_PLUS conditionals with USE_CLUSTER_LIGHT_LOOP in URP HLSL code.
  • Replace #pragma multi_compile _ _FORWARD_PLUS with #pragma multi_compile _ _CLUSTER_LIGHT_LOOP in shader templates and generated shaders.
  • Update subtractive-light handling usage in the Cluster Light Loop directional light path (but currently missing the corresponding macro definition).

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
com.unity.toonshader/Runtime/Shaders/URP/UniversalToonBodyShadingGradeMap.hlsl Switch directional-light loop guard from Forward+ to Cluster Light Loop.
com.unity.toonshader/Runtime/Shaders/URP/UniversalToonBodyDoubleShadeWithFeather.hlsl Switch directional-light loop guard and subtractive check macro name to Cluster Light Loop.
com.unity.toonshader/Runtime/Shaders/URP/UniversalToonBody.hlsl Remove Forward+ subtractive check macro block; update GI conditional to Cluster Light Loop.
com.unity.toonshader/Runtime/Shaders/UnityToonTessellation.shader Update generated URP pass keyword from _FORWARD_PLUS to _CLUSTER_LIGHT_LOOP (and regen timestamp).
com.unity.toonshader/Runtime/Shaders/UnityToon.shader Update generated URP pass keyword from _FORWARD_PLUS to _CLUSTER_LIGHT_LOOP (and regen timestamp).
com.unity.toonshader/Runtime/Shaders/Common/Parts/UnityToonTessellation.shadertemplate Update URP pass multi-compile keyword to _CLUSTER_LIGHT_LOOP.
com.unity.toonshader/Runtime/Shaders/Common/Parts/UnityToon.shadertemplate Update URP pass multi-compile keyword to _CLUSTER_LIGHT_LOOP.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -21,14 +21,6 @@
# endif
#endif


#if USE_FORWARD_PLUS
#if USE_CLUSTER_LIGHT_LOOP
// directional lights in Forward Plus

#if USE_FORWARD_PLUS
#if USE_CLUSTER_LIGHT_LOOP
// directional lights in Forward Plus
@sindharta

Copy link
Copy Markdown
Collaborator

Replaced by #853

@sindharta sindharta closed this Jun 24, 2026
@sindharta sindharta deleted the fix-again6.6 branch June 24, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants