Search Unity

Unity_Matrix_VP is incorrect when rendering Overlay Canvas

Discussion in 'High Definition Render Pipeline' started by Le_Tai, Nov 21, 2020.

  1. Le_Tai

    Le_Tai

    Joined:
    Jun 20, 2014
    Posts:
    442
    I'm converting my custom UI shader from CG block to HLSL block in order to be able to use the Texture2D_X stuff. Thing mostly work, except that UI in Overlay Canvas become massive.

    After some debugging, it looked like `Unity_Matrix_VP` is not set correctly when rendering Overlay Canvas. Is there a correct way to do this, or must I set the matrix myself? Or is there a way to emulate Texture2D_X without converting CG block to HLSL?