Skip to content

Commit

Permalink
v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
izayoijiichan committed Aug 1, 2023
1 parent 3ee9628 commit 3c50a8d
Show file tree
Hide file tree
Showing 19 changed files with 47 additions and 43 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/UniShaderHdrpUtility/Defines/Keyword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public class Keyword
/// <summary>Material Feature Clear Coat</summary>
public const string MaterialFeatureClearCoat = "_MATERIAL_FEATURE_CLEAR_COAT";

/// <summary>Material Feature Iridscence</summary>
/// <summary>Material Feature Iridescence</summary>
public const string MaterialFeatureIridscence = "_MATERIAL_FEATURE_IRIDESCENCE";

/// <summary>Material Feature Specular Color</summary>
Expand Down
4 changes: 2 additions & 2 deletions Runtime/UniShaderHdrpUtility/Defines/Property.cs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public class Property
/// <summary>Distortion Blend Mode</summary>
public const string DistortionBlendMode = "_DistortionBlendMode";

/// <summary>Distortio Src Blend</summary>
/// <summary>Distortion Src Blend</summary>
public const string DistortionSrcBlend = "_DistortionSrcBlend";

/// <summary>Distortion Dst Blend</summary>
Expand Down Expand Up @@ -399,7 +399,7 @@ public class Property
/// <summary>Refraction Model</summary>
public const string RefractionModel = "_RefractionModel";

/// <summary>Ior</summary>
/// <summary>Index of Refraction</summary>
public const string Ior = "_Ior";

/// <summary>Transmittance Color</summary>
Expand Down
4 changes: 2 additions & 2 deletions Runtime/UniShaderHdrpUtility/Defines/PropertyRange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ public class PropertyRange
//[DefaultValue(1.0f)]
public static FloatRangeDefault SmoothnessRemapMax = new FloatRangeDefault(float.MinValue, float.MaxValue, 1.0f);

/// <summary>Ambient Occulusion Remapping Min</summary>
/// <summary>Ambient Occlusion Remapping Min</summary>
//[DefaultValue(0.0f)]
public static FloatRangeDefault AORemapMin = new FloatRangeDefault(float.MinValue, float.MaxValue, 0.0f);

/// <summary>Ambient Occulusion Remapping Max</summary>
/// <summary>Ambient Occlusion Remapping Max</summary>
//[DefaultValue(1.0f)]
public static FloatRangeDefault AORemapMax = new FloatRangeDefault(float.MinValue, float.MaxValue, 1.0f);

Expand Down
4 changes: 2 additions & 2 deletions Runtime/UniShaderHdrpUtility/Definitions/HdrpLitDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public class HdrpLitDefinition : HdrpDefinitionBase
//[DefaultValue(1.0f)]
public float SmoothnessRemapMax { get; set; }

/// <summary>Ambient Occulusion Remapping Min</summary>
/// <summary>Ambient Occlusion Remapping Min</summary>
//[DefaultValue(0.0f)]
public float AORemapMin { get; set; }

/// <summary>Ambient Occulusion Remapping Max</summary>
/// <summary>Ambient Occlusion Remapping Max</summary>
//[DefaultValue(1.0f)]
public float AORemapMax { get; set; }

Expand Down
4 changes: 2 additions & 2 deletions Runtime/UniShaderHdrpUtility/Proxies/HdrpLitMaterialProxy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ public float SmoothnessRemapMax
set => _Material.SetSafeFloat(Property.SmoothnessRemapMax, PropertyRange.SmoothnessRemapMax, value);
}

/// <summary>Ambient Occulusion Remapping Min</summary>
/// <summary>Ambient Occlusion Remapping Min</summary>
//[DefaultValue(0.0f)]
public float AORemapMin
{
get => _Material.GetSafeFloat(Property.AORemapMin, PropertyRange.AORemapMin.defaultValue);
set => _Material.SetSafeFloat(Property.AORemapMin, PropertyRange.AORemapMin, value);
}

/// <summary>Ambient Occulusion Remapping Max</summary>
/// <summary>Ambient Occlusion Remapping Max</summary>
//[DefaultValue(1.0f)]
public float AORemapMax
{
Expand Down
4 changes: 2 additions & 2 deletions Runtime/UniShaderHdrpUtility/UtilsGetter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions Runtime/UniShaderHdrpUtility/UtilsSetter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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,
Expand Down
14 changes: 7 additions & 7 deletions Runtime/UniShaderSkyboxUtility/Defines/Property.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ public class Property

#region 6 Sided

/// <summary>Front Texure</summary>
/// <summary>Front Texture</summary>
public const string FrontTex = "_FrontTex";

/// <summary>Back Texure</summary>
/// <summary>Back Texture</summary>
public const string BackTex = "_BackTex";

/// <summary>Left Texure</summary>
/// <summary>Left Texture</summary>
public const string LeftTex = "_LeftTex";

/// <summary>Right Texure</summary>
/// <summary>Right Texture</summary>
public const string RightTex = "_RightTex";

/// <summary>Up Texure</summary>
/// <summary>Up Texture</summary>
public const string UpTex = "_UpTex";

/// <summary>Down Texure</summary>
/// <summary>Down Texture</summary>
public const string DownTex = "_DownTex";

#endregion
Expand All @@ -49,7 +49,7 @@ public class Property

#region Panoramic

/// <summary>Main Texure</summary>
/// <summary>Main Texture</summary>
public const string MainTex = "_MainTex";

/// <summary>Mapping</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ public class PropertyRange
/// <summary>Normal Map Scale</summary>
public static FloatRangeDefault BumpScale = new FloatRangeDefault(0.0f, 1.0f, 1.0f);

/// <summary>Soft Particles Near Fade Disance</summary>
/// <summary>Soft Particles Near Fade Distance</summary>
public static FloatRangeDefault SoftParticlesNearFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 0.0f);

/// <summary>Soft Particles Far Fade Disance</summary>
/// <summary>Soft Particles Far Fade Distance</summary>
public static FloatRangeDefault SoftParticlesFarFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 1.0f);

/// <summary>Camera Near Fade Disance</summary>
/// <summary>Camera Near Fade Distance</summary>
public static FloatRangeDefault CameraNearFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 1.0f);

/// <summary>Camera Far Fade Disance</summary>
/// <summary>Camera Far Fade Distance</summary>
public static FloatRangeDefault CameraFarFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 2.0f);

/// <summary>Distortion Blend</summary>
Expand Down
2 changes: 1 addition & 1 deletion Runtime/UniShaderStandardUtility/Defines/Property.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Property
/// <summary>Color</summary>
public const string Color = "_Color";

/// <summary>Main Texure</summary>
/// <summary>Main Texture</summary>
public const string MainTex = "_MainTex";

/// <summary>Alpha Cutoff</summary>
Expand Down
4 changes: 2 additions & 2 deletions Runtime/UniShaderUrpParticleUtility/Defines/Keyword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ public class Keyword
/// <summary>Surface Type Transparent</summary>
public const string SurfaceTypeTransparent = "_SURFACE_TYPE_TRANSPARENT";

/// <summary>Reveive Shadows Off</summary>
public const string ReveiveShadowsOff = "_RECEIVE_SHADOWS_OFF";
/// <summary>Receive Shadows Off</summary>
public const string ReceiveShadowsOff = "_RECEIVE_SHADOWS_OFF";

///// <summary>Two Sided</summary>
//public const string TwoSided = "_TWO_SIDED";
Expand Down
8 changes: 4 additions & 4 deletions Runtime/UniShaderUrpParticleUtility/Defines/PropertyRange.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ public class PropertyRange
/// <summary>Normal Map Scale</summary>
public static FloatRangeDefault BumpScale = new FloatRangeDefault(0.0f, 1.0f, 1.0f);

/// <summary>Soft Particles Near Fade Disance</summary>
/// <summary>Soft Particles Near Fade Distance</summary>
public static FloatRangeDefault SoftParticlesNearFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 0.0f);

/// <summary>Soft Particles Far Fade Disance</summary>
/// <summary>Soft Particles Far Fade Distance</summary>
public static FloatRangeDefault SoftParticlesFarFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 1.0f);

/// <summary>Camera Near Fade Disance</summary>
/// <summary>Camera Near Fade Distance</summary>
public static FloatRangeDefault CameraNearFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 1.0f);

/// <summary>Camera Far Fade Disance</summary>
/// <summary>Camera Far Fade Distance</summary>
public static FloatRangeDefault CameraFarFadeDistance = new FloatRangeDefault(0.0f, float.MaxValue, 2.0f);

/// <summary>Distortion Blend</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public bool ReceiveShadows
{
_Material.SetSafeBool(Property.ReceiveShadows, value);

_Material.SetSafeKeyword(Keyword.ReveiveShadowsOff, value == false);
_Material.SetSafeKeyword(Keyword.ReceiveShadowsOff, value == false);
}
}

Expand Down
12 changes: 6 additions & 6 deletions Runtime/UniShaderUrpUtility/Defines/Keyword.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ public class Keyword
/// <summary>Parallax Map</summary>
public const string ParallaxMap = "_PARALLAXMAP";

/// <summary>Reveive Shadows Off</summary>
public const string ReveiveShadowsOff = "_RECEIVE_SHADOWS_OFF";
/// <summary>Receive Shadows Off</summary>
public const string ReceiveShadowsOff = "_RECEIVE_SHADOWS_OFF";

/// <summary>Detail Mulx 2</summary>
/// <summary>Detail Multiply x2</summary>
public const string DetailMulx2 = "_DETAIL_MULX2";

/// <summary>Detail Scaled</summary>
Expand Down Expand Up @@ -96,13 +96,13 @@ public class Keyword
/// <summary>Screen Space Occlusion</summary>
public const string ScreenSpaceOcclusion = "_SCREEN_SPACE_OCCLUSION";

/// <summary>Dbuffer Mrt 1</summary>
/// <summary>DBuffer Multiple Render Targets 1</summary>
public const string DbufferMrt1 = "_DBUFFER_MRT1";

/// <summary>Dbuffer Mrt 2</summary>
/// <summary>DBuffer Multiple Render Targets 2</summary>
public const string DbufferMrt2 = "_DBUFFER_MRT2";

/// <summary>Dbuffer Mrt 3</summary>
/// <summary>DBuffer Multiple Render Targets 3</summary>
public const string DbufferMrt3 = "_DBUFFER_MRT3";

/// <summary>Light Layers</summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public bool ReceiveShadows
{
_Material.SetSafeBool(Property.ReceiveShadows, value);

_Material.SetSafeKeyword(Keyword.ReveiveShadowsOff, value == false);
_Material.SetSafeKeyword(Keyword.ReceiveShadowsOff, value == false);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace UniUrpShader
using UnityEngine;

/// <summary>
/// URP Sinple Lit Material Proxy
/// URP Simple Lit Material Proxy
/// </summary>
/// <remarks>
/// com.unity.render-pipelines.universal
Expand Down
4 changes: 2 additions & 2 deletions Runtime/UniShaderUrpUtility/UtilsSetter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 3c50a8d

Please sign in to comment.