From 3c50a8d06f9cd9d8f12342802df70b6e27db82db Mon Sep 17 00:00:00 2001 From: IzayoiJiichan Date: Tue, 1 Aug 2023 00:00:00 +0900 Subject: [PATCH] v1.6.1 --- CHANGELOG.md | 4 ++++ Runtime/UniShaderHdrpUtility/Defines/Keyword.cs | 2 +- Runtime/UniShaderHdrpUtility/Defines/Property.cs | 4 ++-- .../UniShaderHdrpUtility/Defines/PropertyRange.cs | 4 ++-- .../Definitions/HdrpLitDefinition.cs | 4 ++-- .../Proxies/HdrpLitMaterialProxy.cs | 4 ++-- Runtime/UniShaderHdrpUtility/UtilsGetter.cs | 4 ++-- Runtime/UniShaderHdrpUtility/UtilsSetter.cs | 4 ++-- Runtime/UniShaderSkyboxUtility/Defines/Property.cs | 14 +++++++------- .../Defines/PropertyRange.cs | 8 ++++---- .../UniShaderStandardUtility/Defines/Property.cs | 2 +- .../UniShaderUrpParticleUtility/Defines/Keyword.cs | 4 ++-- .../Defines/PropertyRange.cs | 8 ++++---- .../Proxies/UrpParticleMaterialProxy.cs | 2 +- Runtime/UniShaderUrpUtility/Defines/Keyword.cs | 12 ++++++------ .../Proxies/UrpLitMaterialProxyBase.cs | 2 +- .../Proxies/UrpSimpleLitMaterialProxy.cs | 2 +- Runtime/UniShaderUrpUtility/UtilsSetter.cs | 4 ++-- package.json | 2 +- 19 files changed, 47 insertions(+), 43 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fd3cee..c24e2b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [1.6.1] - 2023-08-01 +- Fixes + - Fixed typo. + ## [1.6.0] - 2023-07-28 - Fixes - Fixed a rendering setting bug for the Standard shader. diff --git a/Runtime/UniShaderHdrpUtility/Defines/Keyword.cs b/Runtime/UniShaderHdrpUtility/Defines/Keyword.cs index bbbc0f8..644428d 100644 --- a/Runtime/UniShaderHdrpUtility/Defines/Keyword.cs +++ b/Runtime/UniShaderHdrpUtility/Defines/Keyword.cs @@ -144,7 +144,7 @@ public class Keyword /// Material Feature Clear Coat public const string MaterialFeatureClearCoat = "_MATERIAL_FEATURE_CLEAR_COAT"; - /// Material Feature Iridscence + /// Material Feature Iridescence public const string MaterialFeatureIridscence = "_MATERIAL_FEATURE_IRIDESCENCE"; /// Material Feature Specular Color diff --git a/Runtime/UniShaderHdrpUtility/Defines/Property.cs b/Runtime/UniShaderHdrpUtility/Defines/Property.cs index 7d46351..f75fb04 100644 --- a/Runtime/UniShaderHdrpUtility/Defines/Property.cs +++ b/Runtime/UniShaderHdrpUtility/Defines/Property.cs @@ -351,7 +351,7 @@ public class Property /// Distortion Blend Mode public const string DistortionBlendMode = "_DistortionBlendMode"; - /// Distortio Src Blend + /// Distortion Src Blend public const string DistortionSrcBlend = "_DistortionSrcBlend"; /// Distortion Dst Blend @@ -399,7 +399,7 @@ public class Property /// Refraction Model public const string RefractionModel = "_RefractionModel"; - /// Ior + /// Index of Refraction public const string Ior = "_Ior"; /// Transmittance Color diff --git a/Runtime/UniShaderHdrpUtility/Defines/PropertyRange.cs b/Runtime/UniShaderHdrpUtility/Defines/PropertyRange.cs index 87a3312..3d22bfc 100644 --- a/Runtime/UniShaderHdrpUtility/Defines/PropertyRange.cs +++ b/Runtime/UniShaderHdrpUtility/Defines/PropertyRange.cs @@ -58,11 +58,11 @@ public class PropertyRange //[DefaultValue(1.0f)] public static FloatRangeDefault SmoothnessRemapMax = new FloatRangeDefault(float.MinValue, float.MaxValue, 1.0f); - /// Ambient Occulusion Remapping Min + /// Ambient Occlusion Remapping Min //[DefaultValue(0.0f)] public static FloatRangeDefault AORemapMin = new FloatRangeDefault(float.MinValue, float.MaxValue, 0.0f); - /// Ambient Occulusion Remapping Max + /// Ambient Occlusion Remapping Max //[DefaultValue(1.0f)] public static FloatRangeDefault AORemapMax = new FloatRangeDefault(float.MinValue, float.MaxValue, 1.0f); diff --git a/Runtime/UniShaderHdrpUtility/Definitions/HdrpLitDefinition.cs b/Runtime/UniShaderHdrpUtility/Definitions/HdrpLitDefinition.cs index 6bea2b3..dbd1a4f 100644 --- a/Runtime/UniShaderHdrpUtility/Definitions/HdrpLitDefinition.cs +++ b/Runtime/UniShaderHdrpUtility/Definitions/HdrpLitDefinition.cs @@ -55,11 +55,11 @@ public class HdrpLitDefinition : HdrpDefinitionBase //[DefaultValue(1.0f)] public float SmoothnessRemapMax { get; set; } - /// Ambient Occulusion Remapping Min + /// Ambient Occlusion Remapping Min //[DefaultValue(0.0f)] public float AORemapMin { get; set; } - /// Ambient Occulusion Remapping Max + /// Ambient Occlusion Remapping Max //[DefaultValue(1.0f)] public float AORemapMax { get; set; } diff --git a/Runtime/UniShaderHdrpUtility/Proxies/HdrpLitMaterialProxy.cs b/Runtime/UniShaderHdrpUtility/Proxies/HdrpLitMaterialProxy.cs index 64d7765..e1c1638 100644 --- a/Runtime/UniShaderHdrpUtility/Proxies/HdrpLitMaterialProxy.cs +++ b/Runtime/UniShaderHdrpUtility/Proxies/HdrpLitMaterialProxy.cs @@ -103,7 +103,7 @@ public float SmoothnessRemapMax set => _Material.SetSafeFloat(Property.SmoothnessRemapMax, PropertyRange.SmoothnessRemapMax, value); } - /// Ambient Occulusion Remapping Min + /// Ambient Occlusion Remapping Min //[DefaultValue(0.0f)] public float AORemapMin { @@ -111,7 +111,7 @@ public float AORemapMin set => _Material.SetSafeFloat(Property.AORemapMin, PropertyRange.AORemapMin, value); } - /// Ambient Occulusion Remapping Max + /// Ambient Occlusion Remapping Max //[DefaultValue(1.0f)] public float AORemapMax { diff --git a/Runtime/UniShaderHdrpUtility/UtilsGetter.cs b/Runtime/UniShaderHdrpUtility/UtilsGetter.cs index 82f1635..e1fc2e3 100644 --- a/Runtime/UniShaderHdrpUtility/UtilsGetter.cs +++ b/Runtime/UniShaderHdrpUtility/UtilsGetter.cs @@ -253,7 +253,7 @@ private static HdrpHairDefinition GetHdrpHairParametersFromMaterial(Material mat NormalMap = materialProxy.NormalMap, NormalScale = materialProxy.NormalScale, - // Ambient Occulusion + // Ambient Occlusion MaskMap = materialProxy.MaskMap, LightmapUV = materialProxy.LightmapUV, @@ -339,7 +339,7 @@ private static HdrpLitDefinition GetHdrpLitParametersFromMaterial(Material mater SmoothnessRemapMin = materialProxy.SmoothnessRemapMin, SmoothnessRemapMax = materialProxy.SmoothnessRemapMax, - // Ambient Occulusion + // Ambient Occlusion MaskMap = materialProxy.MaskMap, AORemapMin = materialProxy.AORemapMin, AORemapMax = materialProxy.AORemapMax, diff --git a/Runtime/UniShaderHdrpUtility/UtilsSetter.cs b/Runtime/UniShaderHdrpUtility/UtilsSetter.cs index 4138af3..1aa9cc6 100644 --- a/Runtime/UniShaderHdrpUtility/UtilsSetter.cs +++ b/Runtime/UniShaderHdrpUtility/UtilsSetter.cs @@ -249,7 +249,7 @@ private static void SetHdrpHairParametersToMaterial(Material material, in HdrpHa NormalMap = parameters.NormalMap, NormalScale = parameters.NormalScale, - // Ambient Occulusion + // Ambient Occlusion MaskMap = parameters.MaskMap, LightmapUV = parameters.LightmapUV, @@ -333,7 +333,7 @@ private static void SetHdrpLitParametersToMaterial(Material material, in HdrpLit SmoothnessRemapMin = parameters.SmoothnessRemapMin, SmoothnessRemapMax = parameters.SmoothnessRemapMax, - // Ambient Occulusion + // Ambient Occlusion MaskMap = parameters.MaskMap, AORemapMin = parameters.AORemapMin, AORemapMax = parameters.AORemapMax, diff --git a/Runtime/UniShaderSkyboxUtility/Defines/Property.cs b/Runtime/UniShaderSkyboxUtility/Defines/Property.cs index a615557..a141e66 100644 --- a/Runtime/UniShaderSkyboxUtility/Defines/Property.cs +++ b/Runtime/UniShaderSkyboxUtility/Defines/Property.cs @@ -20,22 +20,22 @@ public class Property #region 6 Sided - /// Front Texure + /// Front Texture public const string FrontTex = "_FrontTex"; - /// Back Texure + /// Back Texture public const string BackTex = "_BackTex"; - /// Left Texure + /// Left Texture public const string LeftTex = "_LeftTex"; - /// Right Texure + /// Right Texture public const string RightTex = "_RightTex"; - /// Up Texure + /// Up Texture public const string UpTex = "_UpTex"; - /// Down Texure + /// Down Texture public const string DownTex = "_DownTex"; #endregion @@ -49,7 +49,7 @@ public class Property #region Panoramic - /// Main Texure + /// Main Texture public const string MainTex = "_MainTex"; /// Mapping diff --git a/Runtime/UniShaderStandardParticleUtility/Defines/PropertyRange.cs b/Runtime/UniShaderStandardParticleUtility/Defines/PropertyRange.cs index 786a9da..14cba9f 100644 --- a/Runtime/UniShaderStandardParticleUtility/Defines/PropertyRange.cs +++ b/Runtime/UniShaderStandardParticleUtility/Defines/PropertyRange.cs @@ -23,16 +23,16 @@ public class PropertyRange /// Normal Map Scale public static FloatRangeDefault BumpScale = new FloatRangeDefault(0.0f, 1.0f, 1.0f); - /// Soft Particles Near Fade Disance + /// Soft Particles Near Fade Distance public static FloatRangeDefault SoftParticlesNearFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 0.0f); - /// Soft Particles Far Fade Disance + /// Soft Particles Far Fade Distance public static FloatRangeDefault SoftParticlesFarFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 1.0f); - /// Camera Near Fade Disance + /// Camera Near Fade Distance public static FloatRangeDefault CameraNearFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 1.0f); - /// Camera Far Fade Disance + /// Camera Far Fade Distance public static FloatRangeDefault CameraFarFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 2.0f); /// Distortion Blend diff --git a/Runtime/UniShaderStandardUtility/Defines/Property.cs b/Runtime/UniShaderStandardUtility/Defines/Property.cs index 3e7d93d..b3b538c 100644 --- a/Runtime/UniShaderStandardUtility/Defines/Property.cs +++ b/Runtime/UniShaderStandardUtility/Defines/Property.cs @@ -12,7 +12,7 @@ public class Property /// Color public const string Color = "_Color"; - /// Main Texure + /// Main Texture public const string MainTex = "_MainTex"; /// Alpha Cutoff diff --git a/Runtime/UniShaderUrpParticleUtility/Defines/Keyword.cs b/Runtime/UniShaderUrpParticleUtility/Defines/Keyword.cs index 2210fd8..7970c12 100644 --- a/Runtime/UniShaderUrpParticleUtility/Defines/Keyword.cs +++ b/Runtime/UniShaderUrpParticleUtility/Defines/Keyword.cs @@ -12,8 +12,8 @@ public class Keyword /// Surface Type Transparent public const string SurfaceTypeTransparent = "_SURFACE_TYPE_TRANSPARENT"; - /// Reveive Shadows Off - public const string ReveiveShadowsOff = "_RECEIVE_SHADOWS_OFF"; + /// Receive Shadows Off + public const string ReceiveShadowsOff = "_RECEIVE_SHADOWS_OFF"; ///// Two Sided //public const string TwoSided = "_TWO_SIDED"; diff --git a/Runtime/UniShaderUrpParticleUtility/Defines/PropertyRange.cs b/Runtime/UniShaderUrpParticleUtility/Defines/PropertyRange.cs index 687619c..61c16b7 100644 --- a/Runtime/UniShaderUrpParticleUtility/Defines/PropertyRange.cs +++ b/Runtime/UniShaderUrpParticleUtility/Defines/PropertyRange.cs @@ -28,16 +28,16 @@ public class PropertyRange /// Normal Map Scale public static FloatRangeDefault BumpScale = new FloatRangeDefault(0.0f, 1.0f, 1.0f); - /// Soft Particles Near Fade Disance + /// Soft Particles Near Fade Distance public static FloatRangeDefault SoftParticlesNearFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 0.0f); - /// Soft Particles Far Fade Disance + /// Soft Particles Far Fade Distance public static FloatRangeDefault SoftParticlesFarFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 1.0f); - /// Camera Near Fade Disance + /// Camera Near Fade Distance public static FloatRangeDefault CameraNearFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 1.0f); - /// Camera Far Fade Disance + /// Camera Far Fade Distance public static FloatRangeDefault CameraFarFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 2.0f); /// Distortion Blend diff --git a/Runtime/UniShaderUrpParticleUtility/Proxies/UrpParticleMaterialProxy.cs b/Runtime/UniShaderUrpParticleUtility/Proxies/UrpParticleMaterialProxy.cs index 34d7dbf..bd93f5b 100644 --- a/Runtime/UniShaderUrpParticleUtility/Proxies/UrpParticleMaterialProxy.cs +++ b/Runtime/UniShaderUrpParticleUtility/Proxies/UrpParticleMaterialProxy.cs @@ -101,7 +101,7 @@ public bool ReceiveShadows { _Material.SetSafeBool(Property.ReceiveShadows, value); - _Material.SetSafeKeyword(Keyword.ReveiveShadowsOff, value == false); + _Material.SetSafeKeyword(Keyword.ReceiveShadowsOff, value == false); } } diff --git a/Runtime/UniShaderUrpUtility/Defines/Keyword.cs b/Runtime/UniShaderUrpUtility/Defines/Keyword.cs index b61781a..fb5a08b 100644 --- a/Runtime/UniShaderUrpUtility/Defines/Keyword.cs +++ b/Runtime/UniShaderUrpUtility/Defines/Keyword.cs @@ -17,10 +17,10 @@ public class Keyword /// Parallax Map public const string ParallaxMap = "_PARALLAXMAP"; - /// Reveive Shadows Off - public const string ReveiveShadowsOff = "_RECEIVE_SHADOWS_OFF"; + /// Receive Shadows Off + public const string ReceiveShadowsOff = "_RECEIVE_SHADOWS_OFF"; - /// Detail Mulx 2 + /// Detail Multiply x2 public const string DetailMulx2 = "_DETAIL_MULX2"; /// Detail Scaled @@ -96,13 +96,13 @@ public class Keyword /// Screen Space Occlusion public const string ScreenSpaceOcclusion = "_SCREEN_SPACE_OCCLUSION"; - /// Dbuffer Mrt 1 + /// DBuffer Multiple Render Targets 1 public const string DbufferMrt1 = "_DBUFFER_MRT1"; - /// Dbuffer Mrt 2 + /// DBuffer Multiple Render Targets 2 public const string DbufferMrt2 = "_DBUFFER_MRT2"; - /// Dbuffer Mrt 3 + /// DBuffer Multiple Render Targets 3 public const string DbufferMrt3 = "_DBUFFER_MRT3"; /// Light Layers diff --git a/Runtime/UniShaderUrpUtility/Proxies/UrpLitMaterialProxyBase.cs b/Runtime/UniShaderUrpUtility/Proxies/UrpLitMaterialProxyBase.cs index e12ae0a..ad0b786 100644 --- a/Runtime/UniShaderUrpUtility/Proxies/UrpLitMaterialProxyBase.cs +++ b/Runtime/UniShaderUrpUtility/Proxies/UrpLitMaterialProxyBase.cs @@ -104,7 +104,7 @@ public bool ReceiveShadows { _Material.SetSafeBool(Property.ReceiveShadows, value); - _Material.SetSafeKeyword(Keyword.ReveiveShadowsOff, value == false); + _Material.SetSafeKeyword(Keyword.ReceiveShadowsOff, value == false); } } diff --git a/Runtime/UniShaderUrpUtility/Proxies/UrpSimpleLitMaterialProxy.cs b/Runtime/UniShaderUrpUtility/Proxies/UrpSimpleLitMaterialProxy.cs index 33f52a7..79e2391 100644 --- a/Runtime/UniShaderUrpUtility/Proxies/UrpSimpleLitMaterialProxy.cs +++ b/Runtime/UniShaderUrpUtility/Proxies/UrpSimpleLitMaterialProxy.cs @@ -9,7 +9,7 @@ namespace UniUrpShader using UnityEngine; /// - /// URP Sinple Lit Material Proxy + /// URP Simple Lit Material Proxy /// /// /// com.unity.render-pipelines.universal diff --git a/Runtime/UniShaderUrpUtility/UtilsSetter.cs b/Runtime/UniShaderUrpUtility/UtilsSetter.cs index ddae755..fdfa675 100644 --- a/Runtime/UniShaderUrpUtility/UtilsSetter.cs +++ b/Runtime/UniShaderUrpUtility/UtilsSetter.cs @@ -84,7 +84,7 @@ private static void SetUrpLitParametersToMaterial(Material material, UrpLitDefin Smoothness = parameters.Smoothness, SmoothnessTextureChannel = parameters.SmoothnessTextureChannel, - // Supecular Gloss Map + // Specular Gloss Map SpecColor = parameters.SpecColor, SpecGlossMap = parameters.SpecGlossMap, SpecularHighlights = parameters.SpecularHighlights, @@ -176,7 +176,7 @@ private static void SetUrpSimpleLitParametersToMaterial(Material material, UrpSi BlendModePreserveSpecular = parameters.BlendModePreserveSpecular, ReceiveShadows = parameters.ReceiveShadows, - // Supecular Gloss Map + // Specular Gloss Map Smoothness = parameters.Smoothness, SpecColor = parameters.SpecColor, SpecGlossMap = parameters.SpecGlossMap, diff --git a/package.json b/package.json index 27b8312..7e326df 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "com.izayoi.unishaders", "displayName": "UniShaders", "description": "UniShaders is utility scripts to get/set Unity shader parameters. (standard, particle, skybox HDRP, URP)", - "version": "1.6.0", + "version": "1.6.1", "type": "tool", "category": "", "keywords": [