Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
izayoijiichan committed Aug 13, 2020
1 parent e7c4aac commit 238bcb5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Change Log

## [1.0.1] - 2020-08-13
- Fixes
- [UniShaderStandardParticleUtility] Fixed a bug that `ColorColorOn` was not set correctly in case of `SetColorMode`.

## [1.0.0] - 2020-08-07
Initial release.
4 changes: 2 additions & 2 deletions Runtime/UniShaderStandardParticleUtility/UtilsGetter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private static Vector4 GetVector(Material material, string propertyName)
/// </summary>
/// <param name="material"></param>
/// <returns></returns>
private static BlendMode GetBlendMode(Material material)
public static BlendMode GetBlendMode(Material material)
{
BlendMode blendMode = BlendMode.Opaque;

Expand Down Expand Up @@ -184,7 +184,7 @@ private static BlendMode GetBlendMode(Material material)
/// </summary>
/// <param name="material"></param>
/// <returns></returns>
private static ColorMode GetColorMode(Material material)
public static ColorMode GetColorMode(Material material)
{
ColorMode colorMode = ColorMode.Multiply;

Expand Down
8 changes: 4 additions & 4 deletions Runtime/UniShaderStandardParticleUtility/UtilsSetter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,24 +186,24 @@ public static void SetColorMode(Material material, ColorMode colorMode)
{
case ColorMode.Multiply:
SetKeyword(material, Keyword.ColorOverlayOn, false);
SetKeyword(material, Keyword.ColorAddSubDiffOn, false);
SetKeyword(material, Keyword.ColorColorOn, false);
SetKeyword(material, Keyword.ColorAddSubDiffOn, false);
break;
case ColorMode.Overlay:
SetKeyword(material, Keyword.ColorOverlayOn, true);
SetKeyword(material, Keyword.ColorAddSubDiffOn, false);
SetKeyword(material, Keyword.ColorColorOn, false);
SetKeyword(material, Keyword.ColorAddSubDiffOn, false);
break;
case ColorMode.Color:
SetKeyword(material, Keyword.ColorOverlayOn, false);
SetKeyword(material, Keyword.ColorAddSubDiffOn, true);
SetKeyword(material, Keyword.ColorColorOn, true);
SetKeyword(material, Keyword.ColorAddSubDiffOn, false);
break;
case ColorMode.Additive:
case ColorMode.Subtractive:
case ColorMode.Difference:
SetKeyword(material, Keyword.ColorOverlayOn, false);
SetKeyword(material, Keyword.ColorAddSubDiffOn, false);
SetKeyword(material, Keyword.ColorColorOn, false);
SetKeyword(material, Keyword.ColorAddSubDiffOn, true);
break;
}
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": "izayoi.unishaders",
"displayName": "UniShaders",
"description": "UniShaders is utility scripts to get/set Unity shader parameters. (standard, particle, skybox)",
"version": "1.0.0",
"version": "1.0.1",
"type": "tool",
"category": "",
"keywords": [
Expand Down

0 comments on commit 238bcb5

Please sign in to comment.