I understand i need to add #pragma debug to the cgprogram part.
But how do i see the shader code after its compiled?
Do i need a program?
I understand i need to add #pragma debug to the cgprogram part.
But how do i see the shader code after its compiled?
Do i need a program?
Found the solution.
No more “add #pragma debug, open
compiled shader, remove tons of
assembly” nonsense.Just one button in inspector, “Show
generated code”.Generated surface shader code has some
comments and better indentation.It is actually readable code now!