Skip to main content

Proximity Color

Proximity Color is a special effect that allows you to change the color of a mesh based on the distance from the camera. This can be used to darken a mesh when it gets close, simulating local occlusion of light.

Demonstration of Proximity Color affecting the appearance of the Material based on the Camera's distance to the object.

Pos To Use

  • Type: Dropdown, Options: Pixel Position/Object Position

Which position to use to determine distance.

  • Pixel Position: The distance is determined for each pixel, allowing different parts of the mesh to have different colors applied.
  • Object Position: The distance is determined for the entire object, meaning that the whole mesh will have the same color applied.

Min Color

  • Type: Color

What color to multiply the base color by when the distance is at or below the Min Distance. Typically, this would be set to Black in most cases.

Max Color

  • Type: Color

What color to multiply the base color by when the distance is at or above the Max Distance. Typically, this would be set to White.

Min Distance

  • Type: Float

Distance from the camera at which the Min Color should be applied.

Max Distance

  • Type: Float

Distance from the camera at which the Max Color should be applied.

Force BackFace Color

  • Type: Checkbox

If enabled, applies the above set Min Color to show on the Back Face, as if the Camera is going inside the mesh.

Disable Culling for this setting to work

In order to use Force BackFace Color, you must set the Cull to Off under your Rendering settings.