Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Changing extruded renderer's material runtime
#2
Hi,

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,
Reply


Messages In This Thread
RE: Changing extruded renderer's material runtime - by josemendez - 10-12-2024, 05:18 PM