Online Sim Racing netKar PRO


    Shaders

    Share
    avatar
    Andrea Lojelo
    ---
    ---

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

    Shaders

    Post by Andrea Lojelo on 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


    _________________
     
    avatar
    Andrea Lojelo
    ---
    ---

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

    Re: Shaders

    Post by Andrea Lojelo on 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.




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



    _________________
     

      Similar topics

      -

      Current date/time is Sun May 28, 2017 5:17 pm