Skip to content

Commit

Permalink
1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lilxyzw committed Jul 23, 2021
1 parent 0f09095 commit 7058dd8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
21 changes: 16 additions & 5 deletions Assets/lilToon/Editor/lilInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ public enum lilPresetCategory

//------------------------------------------------------------------------------------------------------------------------------
// Constant
public const string currentVersionName = "1.1.2";
public const int currentVersionValue = 5;
public const string currentVersionName = "1.1.3";
public const int currentVersionValue = 6;

public const string boothURL = "https://lilxyzw.booth.pm/";
public const string githubURL = "https://github.com/lilxyzw/lilToon";
Expand Down Expand Up @@ -3119,6 +3119,12 @@ static void VersionCheck()
{
if(String.IsNullOrEmpty(latestVersion.latest_vertion_name))
{
if(!File.Exists(lilStartup.versionInfoTempPath))
{
latestVersion.latest_vertion_name = currentVersionName;
latestVersion.latest_vertion_value = currentVersionValue;
return;
}
StreamReader sr = new StreamReader(lilStartup.versionInfoTempPath);
string s = sr.ReadToEnd();
sr.Close();
Expand Down Expand Up @@ -6596,7 +6602,7 @@ public override void OnGUI(Rect position, MaterialProperty prop, String label, M
//------------------------------------------------------------------------------------------------------------------------------
// MenuItem

public class ShaderRefresh : MonoBehaviour
public class lilShaderRefresh : MonoBehaviour
{
[MenuItem("Assets/lilToon/Refresh Shaders")]
static void RefreshShaders()
Expand Down Expand Up @@ -6909,14 +6915,19 @@ static void FixLighting()

// Fix renderer settings
skinnedMeshRenderer.probeAnchor = anchorObject.transform;
skinnedMeshRenderer.rootBone = anchorObject.transform;
skinnedMeshRenderer.localBounds = new Bounds(new Vector3(0, 0, 0), new Vector3(avatarWidth, avatarWidth, avatarWidth));
skinnedMeshRenderer.lightProbeUsage = UnityEngine.Rendering.LightProbeUsage.BlendProbes;
skinnedMeshRenderer.reflectionProbeUsage = UnityEngine.Rendering.ReflectionProbeUsage.BlendProbes;
if(skinnedMeshRenderer.shadowCastingMode == UnityEngine.Rendering.ShadowCastingMode.Off)
{
skinnedMeshRenderer.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.On;
}

// Fix bounds
if(skinnedMeshRenderer.gameObject.GetComponent<Cloth>() == null && skinnedMeshRenderer.bones != null && skinnedMeshRenderer.bones.Length != 0)
{
skinnedMeshRenderer.rootBone = anchorObject.transform;
skinnedMeshRenderer.localBounds = new Bounds(new Vector3(0, 0, 0), new Vector3(avatarWidth, avatarWidth, avatarWidth));
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions Assets/lilToon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ Comparing parameters when implementing `Convert to MToon (VRM)`
- [視差オクルージョンマッピング(parallax occlution mapping) (コポコポ)](https://coposuke.hateblo.jp/entry/2019/01/20/043042)

# Change log
## v1.1.3
- Fixed problem with Inspector not showing up when version check fails
- Fixed `[lilToon] Fix Lighting` breaking when an object has a Cloth component or no bones
## v1.1.2
- Added custom normal map for MatCap
- Added customization of Rim Light by light direction
Expand Down
3 changes: 3 additions & 0 deletions Assets/lilToon/README_JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ MIT Licenseで公開しています。同梱の`LICENSE`をご確認ください
- [視差オクルージョンマッピング(parallax occlution mapping) (コポコポ)](https://coposuke.hateblo.jp/entry/2019/01/20/043042)

# 変更履歴
## v1.1.3
- バージョンチェック失敗時にInspectorが表示されない問題の修正
- `[lilToon] Fix Lighting`でClothコンポーネントがある、もしくはボーンが無い場合に壊れる問題の修正
## v1.1.2
- マットキャップにカスタムノーマルマップを追加
- リムライトにライト方向によるカスタマイズ機能を追加
Expand Down
2 changes: 1 addition & 1 deletion Assets/lilToon/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jp.lilxyzw.liltoon",
"displayName": "lilToon",
"version": "1.1.2",
"version": "1.1.3",
"unity": "2017.1",
"description": "Feature-rich toon shader.",
"keywords": ["Toon", "Shader", "Material"],
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"latest_vertion_name": "1.1.2", "latest_vertion_value": 5}
{"latest_vertion_name": "1.1.3", "latest_vertion_value": 6}

0 comments on commit 7058dd8

Please sign in to comment.