Search Unity

Sewage shader and Unity 3

Discussion in 'Shaders' started by RHD, Dec 9, 2010.

  1. RHD

    RHD

    Joined:
    Mar 30, 2009
    Posts:
    719
    Hi,

    I've been using the shader from the sewer project for rain running down a roof. Only I upgraded to Unity 3 and it's gone pink. There's nothing in the editor where there should be options and the Console's not complaining.

    This is the script:

    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
    }

    Unfortunately I'm not a coder I'm an artist and I haven't a clue what's wrong here or why the Console hasn't picked anything up. All I know is all I'm getting is a horrid shade of pink.
     
  2. liverolA

    liverolA

    Joined:
    Feb 10, 2009
    Posts:
    347
    also got the same problem,help someone can convert this shader!!!
    appreciate!!
     
  3. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    Try reimporting the bumpmap texture. Pink objects sometimes indicate that the map is in the pre-3.0 format.
     
  4. RHD

    RHD

    Joined:
    Mar 30, 2009
    Posts:
    719
    Hi Andeeee,

    You were absolutely right, the bumpmap was also a horrid shade of pink and went back to normal when I re-importrd it. Unfortunately it hasn't made any difference whatsoever to the shader which remains unmoved.

    Any ideas what to try next?
    Thanks
     
  5. kondrup

    kondrup

    Joined:
    Apr 23, 2009
    Posts:
    205
    We have the same problem - All our reflective alpha shaders are pink :/