flow
New vMember
Posts: 21
|
Post by flow on Dec 10, 2019 16:18:46 GMT
Hey, I am working with in the LWRP and notice that some scripts are not really set up for SRP.
So I create this thread to share my scripts for LWRP and maybe some people follow me.
LWRP:
vCullingFadeControlLWRP:
1. Replace Line 166 of vCullingFadeControl ( fadeMeshRenderers.renderer.materials[m].color = color; ) with
fadeMeshRenderers[ i ].renderer.materials[ m ].SetColor( "_BaseColor", color );
2. Replace Line 184 of vCullingFadeControl ( fadeSkinnedMeshRenderes.renderer.materials[m].color = color; ) with
fadeSkinnedMeshRenderes[ i ].renderer.materials[ m ].SetColor( "_BaseColor", color );
( To the moderators: Consider that this thread maybe contains some snippets from the Invector Template, I don't know if this is allowed but would be a great help for this people who working with SRP )
|
|