mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 14:59:23 +00:00
thirdperson, propundobutton, mirror clone test, you are a clone test, bettershadowclone test, nevermind, anotherlocaltestmod, and some changes to avatarscaling ???
This commit is contained in:
parent
df45fb50d9
commit
9944ad7611
43 changed files with 1076 additions and 173 deletions
|
@ -28,6 +28,8 @@ public struct MeshShadowClone : IShadowClone
|
|||
|
||||
#region IShadowClone Methods
|
||||
|
||||
public void ResetMainMesh(){}
|
||||
|
||||
public bool IsValid => _mainMesh != null && _shadowMesh != null;
|
||||
|
||||
public MeshShadowClone(MeshRenderer meshRenderer)
|
||||
|
@ -88,7 +90,9 @@ public struct MeshShadowClone : IShadowClone
|
|||
|
||||
public void RenderForShadow()
|
||||
{
|
||||
_shadowMesh.shadowCastingMode = ShadowCastingMode.ShadowsOnly;
|
||||
_shadowMesh.shadowCastingMode = ShadowCloneManager.s_DebugShowShadow
|
||||
? ShadowCastingMode.On : ShadowCastingMode.ShadowsOnly;
|
||||
|
||||
_shadowMesh.forceRenderingOff = !_shouldCastShadows;
|
||||
|
||||
// shadow casting needs clone to have original materials (uv discard)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue