Skip to content

Commit 85a169b

Browse files
authored
Feature/task 724 urp sample and some documentation fix (#42)
* Updated URP samples. [skip ci] * Updated documents index.md and index_ja.m and added one Image,TooEvAdjustmenEfficiency2.png. * Added "New Feature" on the title of "Toon EV Adjustment Curve" * did the same again. but "NEW" * Added document internal link to ToonEvAdjustmentCurve. * replaced NEW to 【NEW】 in index.md and index_ja.md.
1 parent cc13f16 commit 85a169b

File tree

9 files changed

+132
-13
lines changed

9 files changed

+132
-13
lines changed
-12.8 KB
Loading
1.22 MB
Loading

com.unity.toonshader/Documentation~/index.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# Unity Toon Shader 0.2.2-preview Manual
22
***Read this document in [日本語版](ja/index_ja.md)***
33

4+
<span style="font-size: 150%; color: red; ">【NEW】</span> [<span style="font-size: 150% ">HDRP Toon EV Adjustment Curve</span>](#ToonEvAdjustmentCurve)
5+
46
[![](images/SDUnitychan_URP.png)](https://www.youtube.com/watch?v=TfZ8B409uqM)
57
[![](images/CRS_VFXJ.png)](https://www.youtube.com/watch?v=p4azFua4rJo)
68
<img width = "800" src="images/TPK_04.png">
79
<img width = "800" src="images/HiUni01.png">
810
<img width = "800" src="images/IllustSample_UTS2.png">
911

12+
13+
14+
1015
# What is Unity Toon Shader?
1116
Unity Toon Shader(Unity-Chan Toon Shader 3) is a toon shader for images and video that is designed to meet the needs of creators working on cel-shaded 3DCG animations. Unlike other pre-render toon shaders, **all features can be adjusted in real time on Unity, which is the greatest feature of Unity Toon Shader**..
1217

@@ -226,7 +231,7 @@ The Color Space must be set to `Linear`.
226231

227232
<img width = "400" src="images/SelectLinearColorSpace.png">
228233

229-
The following sample scenes can be found by opening the sample project and opening the `Assets\Samples\Unity Toon Shader\0.2.2-preview\Universal RP\Sample Scenes(Universal)` folder.
234+
The following sample scenes can be found by opening the sample project and opening the `Assets\Samples\Unity Toon Shader\0.2.2-preview\Universal render pipeline` folder.
230235

231236
* ToonShader.unity :Settings for an illustration-style shader.
232237
* ToonShader_CelLook.unity :Settings for a cel-style shader.
@@ -249,8 +254,8 @@ They should come in handy as an example when creating your own scenes.
249254

250255
**NOTE**
251256
Sample scenes for other render pipeline can be found in the following folder.
252-
* for Legacy (Built-in):`Assets\Samples\Unity Toon Shader\0.2.2-preview\Legacy (built-in)\Runtime` folder
253-
* for HDRP:`Assets\Samples\Unity Toon Shader\0.2.2-preview\High definition render pipeline\Runtime` folder
257+
* for Legacy (Built-in):`Assets\Samples\Unity Toon Shader\0.2.2-preview\Legacy render pipeline` folder
258+
* for HDRP:`Assets\Samples\Unity Toon Shader\0.2.2-preview\High definition render pipeline` folder
254259

255260

256261
# Unity Toon Shader Setting Menu:Unity Toon Shader Custom Inspector
@@ -1034,10 +1039,9 @@ When using this function via Visual Compositor, there is no need to do any parti
10341039
| `Check box for each color area` | When checked, it will fill the corresponding color area with the color specified in the color palette beside it. |
10351040
| `Color palette for each color area` | Specify the color to be filled in. When outputting a mask image for clipping from Visual Compositor, be sure to set the value of the alpha channel (`A`) to 255. |
10361041
---
1037-
1038-
## 14. "Toon EV Adjustment Curve" Mono Behavior
1039-
1040-
<img width = "380" src="images/TooEvAdjustmenEfficiency.png">
1042+
<a id="ToonEvAdjustmentCurve"></a>
1043+
## 14. <span style="color: red; ">【NEW】</span> "Toon EV Adjustment Curve" Mono behavior
1044+
<img width = "800" src="images/TooEvAdjustmenEfficiency2.png">
10411045

10421046

10431047
This feature is only available for HDRP, which, when combined with post-effects such as the Exposure Volume Profile, is designed to render optically correct images without collapsing even in bright environments as intense as 130,000 lux. However, because the Toon Shader uses a completely different logic to render toons apart from this optical correctness, the automatic correction built into HDRP is not enough to get the picture the artist wants. This feature supports artists' corrections in three ways.

com.unity.toonshader/Documentation~/ja/index_ja.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# Unity Toon Shader 0.2.2-preview マニュアル
22
***Read this document in [English](../index.md)***
33

4+
<span style="font-size: 150%; color: red; ">【NEW】</span> [<span style="font-size: 150% ">HDRP Toon EV Adjustment Curve</span>](#ToonEvAdjustmentCurve)
5+
46
[![](../images/SDUnitychan_URP.png)](https://www.youtube.com/watch?v=TfZ8B409uqM)
57
[![](../images/CRS_VFXJ.png)](https://www.youtube.com/watch?v=p4azFua4rJo)
68
<img width = "800" src="../images/TPK_04.png">
79
<img width = "800" src="../images/HiUni01.png">
810
<img width = "800" src="../images/IllustSample_UTS2.png">
911

12+
13+
1014
# Unity Toon Shader とは?
1115
**Unity Toon Shader (ユニティちゃんトゥーンシェーダー 3)** は、セル風3DCGアニメーションの制作現場での要望に応えるような形で設計された、トゥーンシェーダーです。他のプリレンダー向けトゥーンシェーダーとは異なり、**すべての機能がUnity上でリアルタイムで調整可能なことが、Unity Toon Shader の最大の特長です**
1216

@@ -223,7 +227,7 @@ Universal RP 用サンプルは`Project Setting`ダイアログで `UTS2URPPipel
223227

224228
<img width = "400" src="../images/SelectLinearColorSpace.png">
225229

226-
サンプルプロジェクトを開くと、`Assets\Samples\Unity Toon Shader\0.2.2-preview\Universal RP\Sample Scenes(Universal)`フォルダ以下に、次のようなサンプルシーンがあります。
230+
サンプルプロジェクトを開くと、`Assets\Samples\Unity Toon Shader\0.2.2-preview\Universal render pipeline`フォルダ以下に、次のようなサンプルシーンがあります。
227231

228232
* ToonShader.unity :イラストルックのシェーダー設定
229233
* ToonShader_CelLook.unity :セルルックのシェーダー設定
@@ -246,8 +250,8 @@ Universal RP 用サンプルは`Project Setting`ダイアログで `UTS2URPPipel
246250

247251
**NOTE**
248252
その他のレンダーパイプライン向けのサンプルシーンは以下のフォルダに入っています。
249-
* Legacy(Built-in)の場合:`Assets\Samples\Unity Toon Shader\0.2.2-preview\Legacy (built-in)\Runtime`フォルダ
250-
* HDRPの場合:`Assets\Samples\Unity Toon Shader\0.2.2-preview\High definition render pipeline\Runtime`フォルダ 
253+
* Legacy(Built-in)の場合:`Assets\Samples\Unity Toon Shader\0.2.2-preview\Legacy render pipeline`フォルダ
254+
* HDRPの場合:`Assets\Samples\Unity Toon Shader\0.2.2-preview\High definition render pipeline`フォルダ 
251255

252256
# Unity Toon Shader 設定メニュー:Unity Toon Shaderカスタムインスペクター
253257

@@ -1009,10 +1013,11 @@ Unity Toon Shader では、Phong Tessellation にのみ対応しています。
10091013
| `各カラー領域のチェックボックス` | チェックすると、横のカラーパレットに指定されているカラーで該当するカラー領域を塗り潰します。 |
10101014
| `各カラー領域のカラーパレット` | 塗り潰すカラーを指定します。Visual Compositorからクリッピング用マスク画像を出力する場合は、αチャンネルの値(`A`)を必ず255に設定してください。 |
10111015
---
1016+
<a id="ToonEvAdjustmentCurve"></a>
1017+
## 14. <span style="color: red; ">【NEW】</span> "Toon EV Adjustment Curve" Mono behavior
10121018

1013-
## 14. "Toon EV Adjustment Curve" Mono behavior
10141019

1015-
<img width = "380" src="../images/TooEvAdjustmenEfficiency.png">
1020+
<img width = "800" src="../images/TooEvAdjustmenEfficiency2.png">
10161021

10171022
本機能はHDRP専用となります。HDRPでは Exposure Volume Profile などのポストエフェクトと組み合わせることによって、130000 lux もの強烈な明るい環境でも破綻せず、光学的に正しいレンダリングを行うように設計されています。 しかし、Toon Shaderはこう言った光学的な正しさから離れて全く異なるロジックでトゥーン表現を行うため、HDRP組み込みの自動補正を行うだけではアーティストの求める画を得ることができません。本機能は3つの方式でアーティストによる補正をサポートします。
10181023

com.unity.toonshader/Samples~/URP/GraphicsTests.meta renamed to com.unity.toonshader/Samples~/URP/RP_Assets.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: de640fe3d0db1804a85f9fc8f5cadab6, type: 3}
13+
m_Name: ForwardRenderer
14+
m_EditorClassIdentifier:
15+
m_RendererFeatures: []
16+
m_RendererFeatureMap:
17+
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
18+
shaders:
19+
blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}
20+
copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
21+
screenSpaceShadowPS: {fileID: 4800000, guid: 0f854b35a0cf61a429bd5dcfea30eddd,
22+
type: 3}
23+
samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
24+
fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
25+
m_OpaqueLayerMask:
26+
serializedVersion: 2
27+
m_Bits: 4294967295
28+
m_TransparentLayerMask:
29+
serializedVersion: 2
30+
m_Bits: 4294967295
31+
m_DefaultStencilState:
32+
overrideStencilState: 0
33+
stencilReference: 0
34+
stencilCompareFunction: 8
35+
passOperation: 0
36+
failOperation: 0
37+
zFailOperation: 0
38+
m_ShadowTransparentReceive: 1

com.unity.toonshader/Samples~/URP/RP_Assets/ForwardRenderer.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 11500000, guid: bf2edee5c58d82540a51f03df9d42094, type: 3}
13+
m_Name: UTS2URPPipelineAsset
14+
m_EditorClassIdentifier:
15+
k_AssetVersion: 5
16+
k_AssetPreviousVersion: 5
17+
m_RendererType: 1
18+
m_RendererData: {fileID: 0}
19+
m_RendererDataList:
20+
- {fileID: 11400000, guid: dd3610819c0d4a3193f29b3e2a52e040, type: 2}
21+
m_DefaultRendererIndex: 0
22+
m_RequireDepthTexture: 0
23+
m_RequireOpaqueTexture: 0
24+
m_OpaqueDownsampling: 1
25+
m_SupportsTerrainHoles: 1
26+
m_SupportsHDR: 1
27+
m_MSAA: 4
28+
m_RenderScale: 2
29+
m_MainLightRenderingMode: 1
30+
m_MainLightShadowsSupported: 1
31+
m_MainLightShadowmapResolution: 4096
32+
m_AdditionalLightsRenderingMode: 1
33+
m_AdditionalLightsPerObjectLimit: 4
34+
m_AdditionalLightShadowsSupported: 0
35+
m_AdditionalLightsShadowmapResolution: 4096
36+
m_ShadowDistance: 30
37+
m_ShadowCascades: 1
38+
m_Cascade2Split: 0.25
39+
m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467}
40+
m_ShadowDepthBias: 5
41+
m_ShadowNormalBias: 0.1
42+
m_SoftShadowsSupported: 1
43+
m_UseSRPBatcher: 1
44+
m_SupportsDynamicBatching: 0
45+
m_MixedLightingSupported: 1
46+
m_DebugLevel: 0
47+
m_UseAdaptivePerformance: 0
48+
m_PostProcessingFeatureSet: 0
49+
m_ColorGradingMode: 0
50+
m_ColorGradingLutSize: 32
51+
m_ShadowType: 1
52+
m_LocalShadowsSupported: 0
53+
m_LocalShadowsAtlasResolution: 256
54+
m_MaxPixelLights: 0
55+
m_ShadowAtlasResolution: 256
56+
m_ShaderVariantLogLevel: 0

com.unity.toonshader/Samples~/URP/RP_Assets/UTS2URPPipelineAsset.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)