Search Unity

Shader directives - help to understand

Discussion in 'Shaders' started by tomekkie2, Mar 13, 2017.

  1. tomekkie2

    tomekkie2

    Joined:
    Jul 6, 2012
    Posts:
    973
    If the shader CGPROGRAM contains directives:
    Code (CSharp):
    1.             #pragma target 3.0
    2.             #pragma exclude_renderers d3d11
    when rendered by d3d11 device - would it get switched to FallBack shader?

    Please help me with understanding this.
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    It'll use the fallback, and / or use another pass that doesn't exclude d3d11.
     
    tomekkie2 likes this.