Radiator Springs Racing

Would you like to react to this message? Create an account in a few clicks or log in to continue.

Online Sim Racing netKar PRO


    Shaders

    Andrea Lojelo
    Andrea Lojelo
    ---
    ---


    Posts : 12576
    Join date : 2009-04-26
    Age : 45
    Location : Den Haag

    Shaders Empty Shaders

    Post by Andrea Lojelo Mon Jul 19, 2010 1:55 pm

    shaders are applied to an object to improve his rendering effect.
    For example shaders are used to fix flashing tarmac.

    nkasphalt and tangent are the shaders usually used.
    nkasphalt is nice, but also tough on fps. tangent is easier on performance.

    As a basic rule:
    give all flat objects nkasphalt shader. So asphalt, grass, sand, kerbs
    give all vertical objects tangent shader. So walls, some small objects around the track.

    no shader on trees and big objects like boxes.



    To apply a shader select an object and select the correct shader from the combo box
    Shaders Shader
    Andrea Lojelo
    Andrea Lojelo
    ---
    ---


    Posts : 12576
    Join date : 2009-04-26
    Age : 45
    Location : Den Haag

    Shaders Empty Re: Shaders

    Post by Andrea Lojelo Wed Jul 21, 2010 3:00 am

    If you want to use the Tangent shader you always have to specify even the related bump texture.
    You can do that clicking on vars 2, as showed below.
    Shaders Tangentshader



    If you will not specify the bump texture, you will get the following problem. In this case nKengine will get the default bump mapping.

    Shaders Tangent

      Current date/time is Thu Mar 28, 2024 5:03 pm