Skip to content

Commit dda4493

Browse files
author
lilxyzw
committed
fix: shader erroe
1 parent 4506df4 commit dda4493

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

Assets/lilToon/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.2.1] - 2025-08-29
8+
### Fixed
9+
- Shader error
10+
711
## [2.2.0] - 2025-08-29
812
### Added
913
- Added `_UdonForceSceneLighting` to turn off avatar brightness adjustment from the world side

Assets/lilToon/CHANGELOG_JP.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [2.2.1] - 2025-08-29
8+
### 修正
9+
- シェーダーエラー
10+
711
## [2.2.0] - 2025-08-29
812
### 追加
913
- ワールド側からアバターの明るさ調整をオフにする`_UdonForceSceneLighting`を追加

Assets/lilToon/Editor/lilOptimizer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ private static string RewriteInputHLSLText(Dictionary<string, TexProp> dicT, Dic
251251
// Float
252252
indF += TYPE_OFFSET;
253253
string name = line.Substring(indF, indEND - indF);
254-
if (dicF.ContainsKey(name) && !dicF[name].isVariable)
254+
if (dicF.ContainsKey(name) && !dicF[name].isVariable && name != "_LightMinLimit" && name != "_LightMaxLimit" && name != "_MonochromeLighting" && name != "_AsUnlit")
255255
{
256256
float f = dicF[name].f;
257257
f = ShouldLinear(shader, name) ? Mathf.GammaToLinearSpace(f) : f;

Assets/lilToon/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jp.lilxyzw.liltoon",
3-
"version": "2.2.0",
3+
"version": "2.2.1",
44
"displayName": "lilToon",
55
"description": "Feature-rich toon shader.",
66
"unity": "2022.3",
@@ -9,7 +9,7 @@
99
"licensesUrl": "https://github.com/lilxyzw/lilToon/blob/master/Assets/lilToon/LICENSE",
1010
"license": "MIT",
1111
"keywords": ["Toon", "Shader", "Material"],
12-
"url" : "https://github.com/lilxyzw/lilToon/releases/download/2.2.0/jp.lilxyzw.liltoon-2.2.0.zip?",
12+
"url" : "https://github.com/lilxyzw/lilToon/releases/download/2.2.1/jp.lilxyzw.liltoon-2.2.1.zip?",
1313
"repo" : "https://lilxyzw.github.io/vpm-repos/vpm.json",
1414
"legacyFolders" : {
1515
"Assets\\lilToon" : "05d1d116436047941ad97d1b9064ee05"

0 commit comments

Comments
 (0)