Search Unity

Looking for shaders

Discussion in 'Shaders' started by WarpedAxiom, Feb 25, 2007.

  1. WarpedAxiom

    WarpedAxiom

    Joined:
    Oct 27, 2006
    Posts:
    245
    I need a shader that is just a simple diffuse shader that renders both the back and front face, and have the option of a bumpmap.
    Very simple, for optimal rendering time.
    I also need one that's the same, but with shininess instead of bump.
    If this could all be in a single shader, that'd be even better.

    Can anyone point me to, or make for me, shaders like this/these?
    I'd appretiate it. I'm a bit swamped with programming, modelling, animating, etc. to learn how to make my own shaders now.

    Thanks.
     
  2. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    I'm pretty dense when it comes to Shader code, but for your scenario I think all you need to do is include the line "Culling Off" to any of the default Shaders you're using.

    If you want lighting to affect both sides of these polygons realistically then "Culling Off" won't help. In these cases duplicating the faces and flipping their Normal direction is a much better solution. It's basically the same performance hit.
     
  3. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    "Cull Off" actually, but otherwise that's true.

    --Eric