Skip to content

Commit

Permalink
Merge pull request #3 from ishiiyuki/noMirrorAndnoCamera
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
ishiiyuki authored Aug 2, 2023
2 parents a712c7c + 01df3c7 commit 42ffab5
Show file tree
Hide file tree
Showing 11 changed files with 1,179 additions and 2 deletions.
1 change: 1 addition & 0 deletions Assets/csc.rsp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-r:System.IO.Compression.FileSystem.dll
7 changes: 7 additions & 0 deletions Assets/csc.rsp.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//----------------------------------------------------------------------------------------------------------------------
// Base
[lilToggle] _Invisible ("sInvisible", Int) = 0
[lilToggle] _NoMirror ("sNoMirror", Int) = 0
[lilToggle] _NoCamera ("sNoCamera", Int) = 0
_AsUnlit ("sAsUnlit", Range(0, 1)) = 0
_Cutoff ("sCutoff", Range(-0.001,1.001)) = 0.5
_SubpassCutoff ("sSubpassCutoff", Range(0,1)) = 0.5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//----------------------------------------------------------------------------------------------------------------------
// Base
[lilToggle] _Invisible ("sInvisible", Int) = 0
[lilToggle] _NoMirror ("sNoMirror", Int) = 0
[lilToggle] _NoCamera ("sNoCamera", Int) = 0
_AsUnlit ("sAsUnlit", Range(0, 1)) = 0
_Cutoff ("sCutoff", Range(-0.001,1.001)) = 0.5
_SubpassCutoff ("sSubpassCutoff", Range(0,1)) = 0.5
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//----------------------------------------------------------------------------------------------------------------------
// Base
[lilToggle] _Invisible ("sInvisible", Int) = 0
[lilToggle] _NoMirror ("sNoMirror", Int) = 0
[lilToggle] _NoCamera ("sNoCamera", Int) = 0

//----------------------------------------------------------------------------------------------------------------------
// Main
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//----------------------------------------------------------------------------------------------------------------------
// Base
[lilToggle] _Invisible ("sInvisible", Int) = 0
[lilToggle] _NoMirror ("sNoMirror", Int) = 0
[lilToggle] _NoCamera ("sNoCamera", Int) = 0
_AsUnlit ("sAsUnlit", Range(0, 1)) = 0
_Cutoff ("sCutoff", Range(-0.001,1.001)) = 0.5
_SubpassCutoff ("sSubpassCutoff", Range(0,1)) = 0.5
Expand Down
4 changes: 2 additions & 2 deletions Assets/lilToon/Shader/Includes/lil_pass_forward_normal.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ float4 frag(v2f input LIL_VFACE(facing)) : SV_Target

if (_NoMirror)
{
if (!LIL_MATRIX_P[2][2] <= 0)
if (LIL_MATRIX_P[2][2] <= 0)
{
clip(-1);
}
}

if (_NoCamera)
{
if (!IsInVRCCamera())
if (IsInVRCCamera())
{
clip(-1);
}
Expand Down
Loading

0 comments on commit 42ffab5

Please sign in to comment.