Skip to content

Commit

Permalink
1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lilxyzw committed Nov 20, 2021
1 parent 12864cb commit 43ac666
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 10 deletions.
4 changes: 4 additions & 0 deletions Assets/lilToon/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.5] - 2021-11-21
### Fixed
- Fixed an issue where the fur shader wasn't handling fogs well

## [1.2.4] - 2021-11-20
### Added
- `Border` and` Blur` properties for toon specular
Expand Down
4 changes: 4 additions & 0 deletions Assets/lilToon/CHANGELOG_JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.2.5] - 2021-11-21
### 修正
- ファーシェーダーでフォグの処理がうまくできていなかったのを修正

## [1.2.4] - 2021-11-20
### 追加
- 光沢のタイプのトゥーンに`範囲``ぼかし`パラメーターを追加
Expand Down
4 changes: 2 additions & 2 deletions Assets/lilToon/Editor/lilInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ public enum lilLightingPreset

//------------------------------------------------------------------------------------------------------------------------------
// Constant
private const string currentVersionName = "1.2.4";
private const int currentVersionValue = 17;
private const string currentVersionName = "1.2.5";
private const int currentVersionValue = 18;

private const string boothURL = "https://lilxyzw.booth.pm/";
private const string githubURL = "https://github.com/lilxyzw/lilToon";
Expand Down
2 changes: 1 addition & 1 deletion Assets/lilToon/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# lilToon
Version 1.2.4
Version 1.2.5

# Overview
This shader is developed for services using avatars (VRChat, etc.) and has the following features.
Expand Down
2 changes: 1 addition & 1 deletion Assets/lilToon/README_JP.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# lilToon
Version 1.2.4
Version 1.2.5

# 概要
アバターを用いたサービス(VRChat等)向けに開発したシェーダーで以下のような特徴があります。
Expand Down
2 changes: 1 addition & 1 deletion Assets/lilToon/Shader/Includes/lil_common_macro.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ struct lilLightData
#else
#define LIL_VERTEXLIGHT_FOG_TYPE float
#define LIL_VERTEXLIGHT_FOG_COORDS(idx) float vlf : TEXCOORD##idx;
#define LIL_TRANSFER_FOG(i,o) o.vlf = 1.0
#define LIL_TRANSFER_FOG(i,o) o.vlf = lilCalcFogFactor(i.positionCS.z)
#define LIL_APPLY_FOG(col,i) LIL_APPLY_FOG_BASE(col,i.vlf)
#define LIL_APPLY_FOG_COLOR(col,i,fogColor) LIL_APPLY_FOG_COLOR_BASE(col,i.vlf,fogColor)
#endif
Expand Down
4 changes: 2 additions & 2 deletions Assets/lilToon/Shader/Includes/lil_common_vert_fur.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ void geom(triangle v2g input[3], inout TriangleStream<v2f> outStream)
#if defined(LIL_V2G_NORMAL_WS)
float3 ndc = (input[0].normalWS +input[1].normalWS +input[2].normalWS) *0.333333333333;
#endif
#if defined(LIL_V2G_VERTEXLIGHT_FOG) && (defined(LIL_USE_ADDITIONALLIGHT_VS) || defined(FOG_LINEAR) || defined(FOG_EXP) || defined(FOG_EXP2))
#if defined(LIL_V2G_VERTEXLIGHT_FOG) && !(!defined(LIL_USE_ADDITIONALLIGHT_VS) && defined(LIL_HDRP))
LIL_VERTEXLIGHT_FOG_TYPE vlfc = (input[0].vlf + input[1].vlf + input[2].vlf) * 0.333333333333;
#endif
#if defined(LIL_PASS_MOTIONVECTOR_INCLUDED)
Expand Down Expand Up @@ -313,7 +313,7 @@ void geom(triangle v2g input[3], inout TriangleStream<v2f> outStream)
#if defined(LIL_V2F_NORMAL_WS)
output.normalWS = lerp(input[ii2].normalWS,ndc,lpmix);
#endif
#if defined(LIL_V2G_VERTEXLIGHT_FOG) && (defined(LIL_USE_ADDITIONALLIGHT_VS) || defined(FOG_LINEAR) || defined(FOG_EXP) || defined(FOG_EXP2))
#if defined(LIL_V2F_VERTEXLIGHT_FOG) && !(!defined(LIL_USE_ADDITIONALLIGHT_VS) && defined(LIL_HDRP))
output.vlf = lerp(input[ii2].vlf,vlfc,lpmix);
#endif

Expand Down
2 changes: 1 addition & 1 deletion Assets/lilToon/Shader/Includes/lil_pass_forward_fur.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define LIL_V2G_INDLIGHTCOLOR
#endif
#endif
#define LIL_V2G_FOG
#define LIL_V2G_VERTEXLIGHT_FOG
#define LIL_V2G_FURVECTOR

// g2f
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.2.4",
"version": "1.2.5",
"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.2.4", "latest_vertion_value": 17}
{"latest_vertion_name": "1.2.5", "latest_vertion_value": 18}

0 comments on commit 43ac666

Please sign in to comment.