Search Unity

HLSL in ShaderLab

Discussion in 'Shaders' started by kirkf, Jun 6, 2013.

  1. kirkf

    kirkf

    Joined:
    Jun 5, 2013
    Posts:
    5
    I'm trying to use HLSL in ShaderLab and I'm wondering if anyone has any experience in this. Cg code is added between CGPROGRAM and ENDCG so is there something similar for HLSL?
     
  2. Farfarer

    Farfarer

    Joined:
    Aug 17, 2010
    Posts:
    2,249
    HLSL is pretty much CG code. There's very little difference between the two languages.

    What are the issues you're having?
     
  3. kirkf

    kirkf

    Joined:
    Jun 5, 2013
    Posts:
    5
    I'm making a mobile game so I was wondering if there would be any compatibility issues.