Hi Antonio,
ok I fixed it.
Andreas
> Hi,
>
> I'm using a SwitchMaterial for switching between
> two materials. Now I also want to set the SortKey
> to set the rendering order for those materials.
>
> To set the sorting I used:
>
> // get all the pointers
> SwitchMaterialPtr swMaterial = Swit
Hi Andreas,
> actually the sort key of the switch material itself is ignored and it
> is overwritten by the current active material sort key. Now after
> changing the sort key of a material in a switch material you have to
> call
> rebuildState() on the switch material or something like
>
> b
Hi Antonio,
actually the sort key of the switch material itself is ignored and it is
overwritten by the current active material sort key. Now after changing
the sort key of a material in a switch material you have to call
rebuildState() on the switch material or something like
beginEditCP(swMa
Hi,
I'm using a SwitchMaterial for switching between
two materials. Now I also want to set the SortKey
to set the rendering order for those materials.
To set the sorting I used:
// get all the pointers
SwitchMaterialPtr swMaterial = SwitchMaterialPtr::dcast(material);
ChunkMaterialPtr mChunk0 =