Search Unity

Pulling Out Standard Shader Permutations

Discussion in 'Shaders' started by cowtrix, Apr 24, 2015.

  1. cowtrix

    cowtrix

    Joined:
    Oct 23, 2012
    Posts:
    322
    Hey all. Does anyone know if there's a good way to pull out a final source of the standard shader? For instance if I enable cutout, and a couple of other things, what's the final shader look like? My attempts to follow the breadcrumbs of all the includes and pragmas has been frustrating and not too productive. I'm aware that you can look at the compile source for stuff, but that doesn't seem to work for the standard shader. Any ideas?
     
  2. Zicandar

    Zicandar

    Joined:
    Feb 10, 2014
    Posts:
    388
    #pragma enable_d3d11_debug_symbols on a copied-in version of the standard shader might help?
    I managed to see A compiled version for an object being drawn using RenderDoc (hooked to the editor, in play mode with correct swap chain selected). But it did require that pragma to be set.