Linear Fog problem with OpenGL

Hi there,

I’ve got this problem that linear fog doesn’t work with the OpenGL renderer (web build on a mac).
When I turn fog back to Exp or Exp2 it works again but when I use Linear the fog doesn’t show (no errors or warnings).

I use a shader for lightmaps

Shader "LightMap" {
	Properties {
		_MainTex ("Base (RGB)", 2D) = "white" {}
		_LightTex ("Lightmap (RGB)", 2D) = "white" {}
	}
	SubShader {
		Tags { "RenderType"="Opaque" }
		
		Pass
		{
			CGPROGRAM
			#include "UnityCG.cginc"
			#pragma vertex vert
			#pragma fragment frag
			
			sampler2D _MainTex;
			sampler2D _LightTex;
			
			struct Input 
			{
				fixed4 pos : SV_POSITION;
				fixed2 uv1 : TEXCOORD0;
				fixed2 uv2 : TEXCOORD1;
			};
			
			Input vert(appdata_full v)
			{
				Input o;
				o.pos = mul(UNITY_MATRIX_MVP, v.vertex);
				o.uv1 = v.texcoord;
				o.uv2 = v.texcoord1;
				
				return o;
			}
			
			fixed4 frag(Input IN) : COLOR
			{
				fixed4 c = tex2D(_MainTex, IN.uv1);
				fixed4 cl = tex2D(_LightTex, IN.uv2);
				
				fixed4 tint = fixed4(1.0,0.0,0.0,0.0);
				float LightmapOpacity = 0.5;
				return (c * cl);
			}
			ENDCG
		}
	}
}

Does anyone have a solution for this?

Thanks,

Roderick

Anyone?

Hey there! This is an old thread but incidentally I got the same problem in untiy 5 now. Did you ever solve it?