1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. #GiveAwayFriday. Win a copy of F1 2017 - The Game. Click here to join.

Light absorbing shader

Discussion in 'Racer Physics and Technical' started by 2o6, Aug 25, 2010.

  1. 2o6

    2o6

    Messages:
    331
    Ratings:
    +72
    I'm on the brink of releasing my car (that it seems like I have been working on since the beginning of time) but I have issues with the shader. The interior main texture pretty much absorbs all light. How can I fix this?
     
  2. Some1

    Some1

    Messages:
    550
    Ratings:
    +193
    What shader are you using for the interior main texture (material)?
     
  3. Mr Whippy

    Mr Whippy

    Messages:
    2,989
    Ratings:
    +461
    Also, are you using the cg or non-cg shaders?

    A good material for an interior, say leather, would be...

    vf_standard
    {
    vertex_shader
    {
    file=dyn_standard_v.cg
    }
    fragment_shader
    {
    file=standard_f.cg
    }
    }

    leather~vf_standard
    {
    shininess=6
    specular=0.25 0.25 0.25
    layer0
    {
    map=leather.tga
    }
    }


    Add a specular map if you want more control using dyn_standard_speca_f.cg

    Then you can add some depth to the materials specular response!


    Post some pics/details and we should be able to help further :D

    Dave