diff --git a/com.unity.toonshader/CHANGELOG.md b/com.unity.toonshader/CHANGELOG.md index a0d3317a7..e69aabd2f 100644 --- a/com.unity.toonshader/CHANGELOG.md +++ b/com.unity.toonshader/CHANGELOG.md @@ -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 diff --git a/com.unity.toonshader/Runtime/Integrated/Shaders/UnityToon.shader b/com.unity.toonshader/Runtime/Integrated/Shaders/UnityToon.shader index 5c633b95d..1ab40843e 100644 --- a/com.unity.toonshader/Runtime/Integrated/Shaders/UnityToon.shader +++ b/com.unity.toonshader/Runtime/Integrated/Shaders/UnityToon.shader @@ -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 @@ -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 diff --git a/com.unity.toonshader/Runtime/Integrated/Shaders/UnityToonTessellation.shader b/com.unity.toonshader/Runtime/Integrated/Shaders/UnityToonTessellation.shader index 09d39babe..d68f4200a 100644 --- a/com.unity.toonshader/Runtime/Integrated/Shaders/UnityToonTessellation.shader +++ b/com.unity.toonshader/Runtime/Integrated/Shaders/UnityToonTessellation.shader @@ -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