Obi Official Forum
Suggestion / Idea ObiSkinnedClothRenderer needs shadow properties - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Cloth (https://obi.virtualmethodstudio.com/forum/forum-2.html)
+--- Thread: Suggestion / Idea ObiSkinnedClothRenderer needs shadow properties (/thread-2128.html)



ObiSkinnedClothRenderer needs shadow properties - asimofu_ok - 30-03-2020

Thanks for the Obi 5.2 update.
However it seems that cast and receive shadow properties not be implemented.

I suggest to change line 86 of ObiSkinnedClothRenderer.cs like this.
Code:
Graphics.DrawMesh(clothMesh, matrix, rendererMaterials[j], gameObject.layer, null, Mathf.Min(j, subMeshCount - 1)

                            ,null,skin.shadowCastingMode,skin.receiveShadows);



RE: ObiSkinnedClothRenderer needs shadow properties - josemendez - 31-03-2020

(30-03-2020, 12:27 PM)asimofu_ok Wrote: Thanks for the Obi 5.2 update.
However it seems that cast and receive shadow properties not be implemented.

I suggest to change line 86 of ObiSkinnedClothRenderer.cs like this.
Code:
Graphics.DrawMesh(clothMesh, matrix, rendererMaterials[j], gameObject.layer, null, Mathf.Min(j, subMeshCount - 1)

,null,skin.shadowCastingMode,skin.receiveShadows);

Hi,

Thanks for the suggestion! including it in the next release.