RenderHeads / UnityPlugin-AVProLiveCamera

AVPro Live Camera is a Unity plugin for webcams, TV cards and capture cards
https://renderheads.com/products/avpro-live-camera/
11 stars 0 forks source link

Add HDRP/LWRP support #2

Open AndrewRH opened 5 years ago

AndrewRH commented 5 years ago

Currently the ApplyToMaterial/ApplyToMesh scripts don't work correctly. This is due to materina.mainTexture not working with HDRP, so it needs to be changed eg:

                //_material.mainTexture = texture;
                _material.SetTexture("_BaseColorMap", texture);

Have to see if anything else needs changing too.

rilez commented 5 years ago

Hey @AndrewRH thanks for this! Saved me a lot of time having to dig around and find where this was done. Would be great to see this rolled into the main product!