unity3d-jp / MeshSync

A package for synchronizing meshes/models editing in DCC tools into Unity in real time.
Other
1.55k stars 174 forks source link

URP Lit not working when using InstanceHandling: Instance Renderer #775

Closed Wozniax1 closed 1 year ago

Wozniax1 commented 1 year ago

Hello,

I have errors in the console when trying to use InstanceHandling: Instance Renderer method and URP Lit shader material. If I set InstanceHandling to Copy material is working.

Error: DrawMeshInstanced does not support the shader 'Universal Render Pipeline/Lit' because it does not read any instanced properties. Try switching to DrawMeshInstancedProcedural if the shader is doing procedural instancing.

schinkowski commented 1 year ago

Thanks for your feedback @Wozniax1.

Unfortunately this is a regression in some Unity builds and is fixed in Unity 2022.

The meshes should still render correctly and the error should only log a few times, this will not impact performance at runtime because it does not log it at runtime.

If you can't upgrade to Unity 2022 you can work around it by creating a copy of the URP Lit shader and putting #pragma editor_sync_compilation in the Material Keywords section and use the modified shader in the material instead.

Wozniax1 commented 1 year ago

Ok Thanks.

Is support for Blender 3.3 and geometry nodes procedural unwraping planned?

schinkowski commented 1 year ago

Yes, we're looking into blender 3.3 support and geo node UVs should be supported the same way we already support UVs.

Wozniax1 commented 1 year ago

Great, thanks.

sindharta commented 1 year ago

Closing. Feel free to reopen if there are any more related questions.