Jump to content

How to Apply AntialiasingMode?


Diggidy

Recommended Posts

timeOfDayScript.m_cameraSettings.m_antialiasingMode = UnityEngine.Rendering.HighDefinition.HDAdditionalCameraData.AntialiasingMode.None;

 

AntialiasingMode can be set with the above line and I can see it change in the inspector but the change does not happen in-game. I have used timeOfDayScript.RefreshTimeOfDay(); to change other settings but this does not work for AntialiasingMode.

Link to comment
Share on other sites

Some more context, I noticed it is being set in the HDRPTimeOfDay.cs but not the camera. I fixed this by referencing the camera and changing it there as well. 

Link to comment
Share on other sites

4 hours ago, Diggidy said:

timeOfDayScript.m_cameraSettings.m_antialiasingMode = UnityEngine.Rendering.HighDefinition.HDAdditionalCameraData.AntialiasingMode.None;

 

AntialiasingMode can be set with the above line and I can see it change in the inspector but the change does not happen in-game. I have used timeOfDayScript.RefreshTimeOfDay(); to change other settings but this does not work for AntialiasingMode.

 

For this the camera settings are seperate and in the camera settings class there is apply function and you pass in camera and camera data. In the new version which is coming out soon i will add a API function that makes changing Anti Aliasing easier and will require you to just pass in what the new aa mode will be.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...