Search Unity

Hide shader code))

Discussion in 'Shaders' started by imaewyn, Sep 26, 2017.

  1. imaewyn

    imaewyn

    Joined:
    Apr 23, 2016
    Posts:
    211
    Hello. Can I compile something like dll from my shaders, that I can hide some features if I will decide to sell my asset f. e. )) And also there are .cginc files with general realisation, how I can hide them?)
     
    Last edited: Sep 26, 2017
  2. imaewyn

    imaewyn

    Joined:
    Apr 23, 2016
    Posts:
    211
  3. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    Unity pulled support for precompiled shaders in 5.3, which effectively removed allowing hidden shaders for sold assets. They pulled all assets in the store that used precompiled or hidden shaders for Unity 5.3 release as well.
     
  4. Pode

    Pode

    Joined:
    Nov 13, 2013
    Posts:
    145
    @imaewyn : you can still minify/obfuscate them, however.