Fog Range Syntax

I’m having trouble finding how Unity wants the Range parameter of its fixed-function fog formatted.

To clarify, I am looking for the Shader Lab syntax, as shown in my example snippets below.

I’ve tried things like:

Fog{Mode Linear Color[_FogColor] Range[0.0,1000.0]}

Fog{Mode Linear Color[_FogColor] Range(0.0,1000.0])}

Fog{Mode Linear Color[_FogColor] Range{0.0,1000.0}}

Fog{Mode Linear Color[_FogColor] Range 0.0,1000.0 }

This has been all to no avail and I can’t find any information anywhere via search engine.

I’m beginning to think this doesn’t actually exist/work at all.



The bottom syntax works for me. Just created a test shader as follows and I can clearly see the effect when I vary the range values:

Shader "Custom/TestFog" {
	Properties {
		_MainTex ("Base (RGB)", 2D) = "white" {}
	SubShader {
		Tags { "RenderType"="Opaque" }
		Fog { Mode Linear Color (1.0,0,0,0) Range 0.0,10.0}
		LOD 200
		#pragma surface surf Lambert

		sampler2D _MainTex;

		struct Input {
			float2 uv_MainTex;

		void surf (Input IN, inout SurfaceOutput o) {
			half4 c = tex2D (_MainTex, IN.uv_MainTex);
			o.Albedo = c.rgb;
			o.Alpha = c.a;
	FallBack "Diffuse"