Skip to content

Commit

Permalink
Task/2033 urp shadow issue (#302)
Browse files Browse the repository at this point in the history
* on the way to the investigation.

* Fixed: the issue.

* Updated the changelog.

* Removed unnecessary header include in UnityToon.shader for URP.
  • Loading branch information
H3idi-X authored Apr 12, 2023
1 parent ad46501 commit 2f85b55
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
6 changes: 3 additions & 3 deletions com.unity.toonshader/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Changelog
## [0.9.2-preview] - 2023-04-07
### Updated
* Next version is 0.9.2-preview
## [0.9.2-preview] - 2023-04-12
### Fixed
* URP shader doesn't recieve shadows in player builds.

## [0.9.1-preview] - 2023-03-30
### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1212,8 +1212,7 @@ Shader "Toon" {
#endif
// -------------------------------------
// Lightweight Pipeline keywords
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS_CASCADE
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE _MAIN_LIGHT_SHADOWS_SCREEN
#pragma multi_compile _ _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHTS
#pragma multi_compile _ _ADDITIONAL_LIGHT_SHADOWS
#pragma multi_compile _ _SHADOWS_SOFT
Expand All @@ -1222,8 +1221,11 @@ Shader "Toon" {
#pragma multi_compile _ _MIXED_LIGHTING_SUBTRACTIVE
// -------------------------------------
// Unity defined keywords
#pragma multi_compile _ LIGHTMAP_SHADOW_MIXING
#pragma multi_compile _ SHADOWS_SHADOWMASK
#pragma multi_compile _ DIRLIGHTMAP_COMBINED
#pragma multi_compile _ LIGHTMAP_ON
#pragma multi_compile _ DYNAMICLIGHTMAP_ON
#pragma multi_compile_fog

#define _IS_PASS_FWDBASE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1273,20 +1273,23 @@ Shader "Toon(Tessellation)" {
#endif
// -------------------------------------
// Lightweight Pipeline keywords
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS_CASCADE
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE _MAIN_LIGHT_SHADOWS_SCREEN
#pragma multi_compile _ _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHTS
#pragma multi_compile _ _ADDITIONAL_LIGHT_SHADOWS
#pragma multi_compile _ _SHADOWS_SOFT

#pragma multi_compile _ _FORWARD_PLUS

#pragma multi_compile _ _MIXED_LIGHTING_SUBTRACTIVE
// -------------------------------------
// Unity defined keywords
#pragma multi_compile _ LIGHTMAP_SHADOW_MIXING
#pragma multi_compile _ SHADOWS_SHADOWMASK
#pragma multi_compile _ DIRLIGHTMAP_COMBINED
#pragma multi_compile _ LIGHTMAP_ON
// #pragma multi_compile_fog
#pragma multi_compile _ DYNAMICLIGHTMAP_ON
#pragma multi_compile_fog

#pragma multi_compile _IS_PASS_FWDBASE
#define _IS_PASS_FWDBASE
// DoubleShadeWithFeather and ShadingGradeMap use different fragment shader.
#pragma shader_feature_local _ _SHADINGGRADEMAP

Expand Down

0 comments on commit 2f85b55

Please sign in to comment.