How to implement Temporal Anti Aliasing manually
Yongyi
✭
in Photon Bolt
Hi Bolt team,
The Temporal Anti Aliasing is not fit for my game. It seems I have to implement it by myself.
So, is there a callback function for property value changed? Or I have to call State.AddCallBack() for each property?
The Temporal Anti Aliasing is not fit for my game. It seems I have to implement it by myself.
So, is there a callback function for property value changed? Or I have to call State.AddCallBack() for each property?
0
Comments
-
https://doc.photonengine.com/en-us/bolt/current/in-depth/temporal-anti-aliasing
https://doc.photonengine.com/en-us/bolt/current/reference/state-callbacks
You can manually update the render transform yourself in Update.0 -
On the server side, I write like this:stanchion said:https://doc.photonengine.com/en-us/bolt/current/in-depth/temporal-anti-aliasing
https://doc.photonengine.com/en-us/bolt/current/reference/state-callbacks
You can manually update the render transform yourself in Update.
if (BoltNetwork.isServer)
{
state.SetTransforms(state.CubeTransform, transform);
}
On the client side, I write like this:
if (BoltNetwork.isClient)
{
state.AddCallback("CubeTransform", MyCallbackFunction);
}
But it seems MyCallBackFunction is never called.
So how can I get notified that Transform is changed? Thank you.0