Added UtsSingleLightLoop

This commit is contained in:
2025-03-23 17:53:36 +09:00
parent ee0b720b6d
commit ea3e83157c
18 changed files with 142 additions and 234 deletions

View File

@@ -2,19 +2,6 @@ Shader "HDRP/Toon"
{
Properties
{
// -----------------------------------------------------------------------------
// parameters for UTS
// -----------------------------------------------------------------------------
[HideInInspector] _simpleUI("SimpleUI", Int) = 0
// Versioning of material to help for upgrading
[HideInInspector] [Enum(Off, 0, ON, 1)] _isUnityToonshader("Material is touched by Unity Toon Shader", Int) = 1
[HideInInspector] _utsVersionX("VersionX", Float) = 0
[HideInInspector] _utsVersionY("VersionY", Float) = 7
[HideInInspector] _utsVersionZ("VersionZ", Float) = 6
_BentNormalMap("_BentNormalMap", 2D) = "bump" {}
_BentNormalMapOS("_BentNormalMapOS", 2D) = "white" {}
_HeightMap("HeightMap", 2D) = "black" {}
// Caution: Default value of _HeightAmplitude must be (_HeightMax - _HeightMin) * 0.01
// Those two properties are computed from the ones exposed in the UI and depends on the displaement mode so they are separate because we don't want to lose information upon displacement mode change.
@@ -216,6 +203,8 @@ Shader "HDRP/Toon"
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
//TODO: Move more properties here for better organization
// Surface Options
[Popup] _TransparentEnabled("Transparent Mode", Integer) = 0
[ToggleUI] _AlphaCutoffEnable("Alpha Cutoff Enable", Float) = 0.0
@@ -247,6 +236,8 @@ Shader "HDRP/Toon"
_ShadingRampMap("ShadingRampMap", 2DArray) = "white" {}
_ShadingIndex("ShadingIndex", Integer) = 0
_ShadingRampMaskMap("ShadingRampMaskMap", 2D) = "white" {}
_ShadingRampMask("ShadingRampMask", Range(0, 1)) = 1
_SDFShadingMap("SDFShadingMap", 2D) = "white" {}
_SDFShadowLevel("SDFShadowLevel", Range(0.0, 1.0)) = 0.25
@@ -365,7 +356,7 @@ Shader "HDRP/Toon"
//TODO: End Section
[Toggle(_)] _Cast_Hair_Shadow("CastHairShadow", Float) = 0
@@ -1041,6 +1032,8 @@ Shader "HDRP/Toon"
#pragma shader_feature_local_fragment _SCREEN_SPACE_RIM_LIGHT_ON
#pragma shader_feature_local_fragment _LIGHT_BASE_RIM_LIGHT_ON
#pragma shader_feature_local_fragment _SHADING_RAMP_MASK_MAP
#pragma shader_feature_local_fragment _MASKMAP
#pragma shader_feature_local_fragment _NORMALMAP
#pragma shader_feature_local_fragment _ANISOTROPYMAP