Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

ShaderLab boolean parameters to support uber-shaders

Discussion in 'Wish List' started by naxel, Apr 5, 2013.

  1. naxel


    Sep 12, 2012
    It will be very convinient to create special type of ShaderLab parameters as boolean. You can make this parameter editable only from inspector and accessible only for read from scripts, so all shader permutations are ready before package build phase and we don't need to generate all combinations as for 'keywords'. This boolean should generate #define with the same name if 'true' and do nothing in other case.