In my game i am using
mesh->SetRenderCustomDepth(true);
mesh->SetCustomDepthStencilValue(2);
to set a stencil outline on a pickup that the player is looking at.
This works correctly however it replicates the stencil value to all players connected to the server and all players see the outline. How would i go about doing this where it only does the stencil outline for the client calling the methods?
I feel like i am missing something simple because the client should not be able to be the authority on the meshes Depth Stencil Value for other clients.
I assume its related to the replication of the material across the server, still find it odd that a client can control that without a server rpc call