Fog Properties Panel

On the fog Properties panel, you can set parameters related to fog such as fog color.

Fog Properties Panel Settings and Features

This page describes fog Properties panel settings and features.

Fog Properties panel settings
A Categories You can show/hide the various categories in the fog Properties panel and also copy category settings.
B General Select type of fog function
Set starting/ending depth values for fog and fog density
Mark/clear the Z-flip Enable checkbox
C Fog color Set fog color using R, G and B.
The fragment color is blended with the fog color.
D User Data Sets optional data used by the game developer. The data set here is passed as is to the application, and is not used by CreativeStudio.

General

This section describes the items that can be set in the General category.

Fog function

The following three fog functions can be selected under CreativeStudio.

Currently, lookup table editing is not supported.
Future plans call for allowing editing using lookup tables.
This plan may change.

Parameters

The following three parameters are used.

Parameters Description
Starting depth value for fog Sets the distance from the camera at which application of fog starts.
The higher the depth value, the farther away application of fog starts.
Ending depth value for fog Sets the distance from the camera at which fog density is at maximum.
Fog density Sets the fog density.
The higher the numeric value, the denser the fog.

Z-flip

Allows you to invert depth values used as input to the fog function.

This allows expressions where fog is applied from back to front.

Note: Z-flip is not for inverting the fog starting point-to-ending point range, but rather for inverting the overall camera near to far range, so the camera's near and far must be configured appropriately. Z-buffering, which can bias the precision of fog tables depending on the depth value, is difficult to use with Z-flip, so we recommend using W buffering instead. The camera's near and far settings can be configured in the camera Properties panel.

Fog color

Sets the color used for the fog.

The fog color is blended with the fragment color.


CONFIDENTIAL