Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question #pragma debug

Discussion in 'Shaders' started by aubergine, Nov 30, 2022.

  1. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,864
    pragma debug doesnt work anymore?
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,844
    Yes, the PR that disabled it landed back in 2016 :)
     
  3. burningmime

    burningmime

    Joined:
    Jan 25, 2014
    Posts:
    845
  4. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,864
    Good enough.
    Could you kindly explain unity_Projector and the projetctorclip matrices please? I sure dont remember those anymore and theres no documentation.
     
  5. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    2,844
    FWIW
    #pragma debug
    used to turn on some extra debug printing when generating surface shaders.
    #pragma enable_d3d11_debug_symbols
    turns on debugging information for some platforms, including DX11.

    Here's a doc on projective texture mapping. Clip matrix does the culling.
     
    aubergine likes this.