This page may not work correctly inside the Unity editor. Open in browser

Quality Settings

Requires the full Nature Shaders package.

Not supported in Nature Shaders Essentials. (Learn more)

Nature Shaders comes with a few different settings that you can use to adjust the shading quality. These can be used for an in-game settings menu, or to change the quality depending on the platform.

Global Quality Settings

The Global Quality Settings are set on a global level, and are applied to all materials in your project. They can be changed at runtime.

The global settings are set via script, using the QualitySettings class:

using VisualDesignCafe.Nature;

// Access the different sections using the static properties.
QualitySettings.Graphics
QualitySettings.Interaction
QualitySettings.Overlay

// The changes won't update until they are explicitly applied.
QualitySettings.Apply();

 

Graphics

MaterialQuality
Override the material quality for all materials in the project. This sets the MATERIAL_QUALITY_HIGH, MATERIAL_QUALITY_MEDIUM, and MATERIAL_QUALITY_LOW global shader keywords.
What effect this has depends on how each shader implements these keywords. The default behavior for all Nature Shaders is to reduce the lighting quality.
Default: High

Note

These keywords are shared with the URP and HDRP material quality settings.

Interaction

Enabled
Enable or disable interaction for all materials in the project. Useful to disable interaction on low-end devices.
Default: true
Resolution
The resolution that is used for the internal render texture that stores interaction data. This setting is combined with the Accuracy setting to calculate the maximum distance at which interaction is applied.
Default: 2048

Example

With a resolution of 2048 and an accuracy of 5, the effective range is 2048/5 = 410 units. Any vegetation further away than 410 units will not interact with objects.

Accuracy
The accuracy of the interaction. Uses pixels per unit as measurement.
Default: 5

Overlay

Enabled
Enable or disable the overlay for all materials in the project. Useful to disable overlay on low-end devices.
Default: true
Resolution
The resolution that is used for the internal render texture that stores overlay data. This setting is combined with the Accuracy setting to calculate the maximum distance at which the overlay is applied.
Default: 2048

Example

With a resolution of 2048 and an accuracy of 4, the effective range is 2048/4 = 512 units. Any vegetation further away than 512 units will not receive overlay data.

Accuracy
The accuracy of the interaction. Uses pixels per unit as measurement.
Default: 4

Material Quality Settings

Some settings can be changed for each material independently to optimize performance. These settings are adjusted in the Material Editor by selecting a material.

Lighting Quality
Adjust the Lighting Quality to change how this material is shaded.
High: uses Physically Based Shading, similar to the Lit or Standard shader.
Low: uses a Blinn-Phong lighting model.
This setting is overridden by the Material Quality settings in the project, if the project settings are lower than the settings of the material.
Specular Highlights
Disable to remove specular highlights from the material. This bypasses all specular calculations in the shader, and can be a performance improvement for materials that have close to no specular reflections.
Environment Reflections
Disable to remove environment reflections from the material.
Interaction
Disable this section to completely disable interaction for the material.
Wind
Disable this section to completely disable wind for the material.
Translucency
Disable this section to completely disable translucency for the material.
Was this article helpful?
0 out of 0 found this helpful