I want to apply a specular bump to a spaceship model which have a lot of "white glow window", something like this: http://img2.wikia.nocookie.net/__cb...e/images/thumb/5/55/Akkan.jpg/256px-Akkan.jpg I had some research and found this:http://answers.unity3d.com/questions/306921/add-specular-map-to-shader.html but it didnt work with me, the ship window not glow highlight. can anyone tell me what I do wrong here? PS:sorry my bad English.
All right, it seem the o.Gloss and o.Specular didn't work and i 'd found a way arround this: Code (CSharp): void surf (Input IN, inout SurfaceOutput o) { fixed4 tex = tex2D(_MainTex, IN.uv_MainTex); fixed4 specTex = tex2D(_SpecMap, IN.uv_SpecMap); o.Albedo = tex.rgb * _Color.rgb + _Shininess * specTex.g; o.Alpha = tex.a * _Color.a; o.Normal = UnpackNormal(tex2D(_BumpMap, IN.uv_BumpMap)); } instead of: Code (CSharp): void surf (Input IN, inout SurfaceOutput o) { fixed4 tex = tex2D(_MainTex, IN.uv_MainTex); fixed4 specTex = tex2D(_SpecMap, IN.uv_SpecMap); o.Albedo = tex.rgb * _Color.rgb; o.Gloss = specTex.r; o.Alpha = tex.a * _Color.a; o.Specular = _Shininess * specTex.g; o.Normal = UnpackNormal(tex2D(_BumpMap, IN.uv_BumpMap)); } but i have no idea with the Gloss and Specular use for.