Hey guys,
i’ve copied the DragRigidbodyShadow script from the SadowDemo Project and i’m tring to use on mine.
I’ve already setted the highlight material variable but i’m having this error: DrawMesh requires material.SetPass before!
Probably its something very simple but i’m new to unity =/
Any ideas?
Notice this line → Shader “Shadows/Drag Highlight”
This tells you where you could find it in the shader menu. Now go to the Highlight texture that you dragged on to DragRigidBodyShadow.js and double click on the Highlight texture. That will open up the Highlight inspector.
Click on the dropdown and select Shadows and then Drag Highlight from the sub menu.