Open everalan10 opened 3 years ago
AnimationInstancingLitURP.zip 我改了一下urp的Lit的shader,不知道能不能帮助你
Hi there,
Did you have success with wanghao7631's suggestion?
Does @wanghao7631 solution work, for the URP shader in Unity 2020.3.0f1?
I get this error: Shader error in 'AnimationInstancing/Lit': 'InitializeStandardLitSurfaceData': output parameter 'outSurfaceData' not completely initialized at Assets/ShaderLibrary/LitInput.hlsl(73) (on d3d11)
I have rewrite it to support urp , and works well .
I can confirm @wanghao7631 solution does work.
Fix for the error:
Shader error in 'AnimationInstancing/Lit': 'InitializeStandardLitSurfaceData': output parameter 'outSurfaceData' not completely initialized at Assets/ShaderLibrary/LitInput.hlsl(73) (on d3d11)
Open the LitInput.hlsl file and in the "InitializeStandardLitSurfaceData" void add "ZERO_INITIALIZE(SurfaceData, outSurfaceData);" at the start.
The only issue I am having now is the shadows do not work correctly I am only getting a constant T-Pose shadow.
Any help is greatly appreciated.
I have rewrite it to support urp , and works well .
Can you show me how?
Offcourse yes ,enjoy Scripts.zip
Shader.zip And here is the skinned shader, support track blending
Shader.zip And here is the skinned shader, support track blending
HI please help how to use it
@mahdiwarrior the same as offical , I just edited a little bit
@cailuming Any idea how it can work with singles pass instanced in VR? It now only renders on left eye. Thank you.
@cailuming Any idea how it can work with singles pass instanced in VR? It now only renders on left eye. Thank you.
I'm sorry for not familiar with VR,but maybe you can make a copy of the transforms combined with another eye's perspective projection matrix. Then merge all of them to one buffer,hope it helps.
Hi, could you update this project for HDRP?
I use it with URP 14.0.8 and Entities Graphics 1.0.11, no error but also no mesh was rendered... lol... it seems it need some tweak when using it with entities graphics...
Hi guys,
I thought I'd mention it in case - the below Unity Asset Store asset does a good job with URP: https://assetstore.unity.com/packages/tools/animation/mesh-animator-animate-massive-crowds-26009
[no affiliation with Mesh Animator, I simply use it in my game]
@DaFeuk You need to adjust the shadow pass as follows
(the includes should match the forward pass above)
Hi, could you update this project for URP and HDRP? Maybe another project to suggest. Great job!