10-12-2024, 05:18 PM
(This post was last modified: 10-12-2024, 05:20 PM by josemendez.)
Hi,
Yes, you just need to flag the renderer dirty after changing the material:
This will refresh the material and trigger a re-batching of all ropes to minimize the amount of batches next time the rope is rendered. Note this is a somewhat expensive operation.
kind regards,
Yes, you just need to flag the renderer dirty after changing the material:
Code:
((ObiActorRenderer<ObiRopeExtrudedRenderer)renderer).SetRendererDirty(Oni.RenderingSystemType.AllSmoothedRopes);
This will refresh the material and trigger a re-batching of all ropes to minimize the amount of batches next time the rope is rendered. Note this is a somewhat expensive operation.
kind regards,