Hello,
I have a problem, I used one of the shader from the Unity Tutorial “Sewer Project” the water shader “Reflective/BumpedSpecularRefractive” before this I used the shader on Unity 2.6 Its all good but after I install Unity3 and port my project to Unity3 the object with “Reflective/BumpedSpecularRefractive” shader turn into a pink colour and I click on the shader inspector nothing happen, what happen can someone help me.
here is the shader code:
Shader "Reflective/BumpedSpecularRefractive" {
Properties {
_Color ("Main Color", Color) = (1,1,1,0)
_SpecColor ("Specular Color", Vector) = (0,0,0,0)
_Shininess ("Shininess", Range (0.01, 1)) = 0.078125
_ReflectColor ("Reflection Color", Color) = (1.0, 1.0, 1.0, 0)
_BumpAmt ("Distortion", range (0,128)) = 10
_MainTex ("Base (RGB) Gloss (A)", 2D) = "white"
_BumpMap ("Bumpmap", 2D) = "bump"
_Cube ("cubemap", Cube) = "_Skybox"
}
Category {
ZWrite Off
Alphatest Greater 0
Tags {Queue=Transparent}
Fog { Color [_AddFog] }
SubShader {
UsePass "FX/Glass/Stained BumpDistort/BASE"
// ------------------------------------------------------
// ARB_FP, Geforce3
// ------------------------------------------------------
UsePass "Reflective/Bumped Unlit/BASE"
Pass {
Name "BASE"
Tags {"LightMode" = "Vertex"}
Tags {"Queue" = "Transparent" }
Blend SrcAlpha One
Material {
Diffuse [_Color]
Ambient (1,1,1,1)
Shininess 10
Specular [_SpecColor]
}
Lighting On
SeparateSpecular on
SetTexture [_MainTex] {
constantColor [_Color] Combine texture * primary DOUBLE, constant
}
}
UsePass "Alpha/BumpedSpecular/PPL"
}
}
FallBack "Reflective/BumpedSpecularSRC", 1
}