Search Unity

How do we make Shader Model 5.0 shaders.

Discussion in 'Shaders' started by Tom Castle, May 27, 2013.

  1. Tom Castle

    Tom Castle

    Joined:
    May 19, 2013
    Posts:
    13
    I was wondering if there were any tutorials or guides for writing Shader Model 5.0 shaders. I have a DX11 card so that won't be an issue. How would we go about upgrading shaders from 3.0 to 5.0.

    Tom
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Read any DX11 shader tutorial (from Microsoft or the GPU makers or anywhere else).

    But basically, you write "#pragma target 5.0" and then you have shader model 5.0 HLSL at your hands.