Currently i'm using HDRP in my project, so i have a question. How can i access Lit shader properties through code ? Or where i can see names of variables in this shader ?
For example:
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.
Sign up to join this communityHDRP is still under heavy development and all the code is still in flux. Even if you find some code that works right now chances are it will stop working very soon. That's why there aren't really any tutorials/etc for HDRP code yet. Really, the safest shader method right now is to use Shader Graph.
But... you can find the source code for all the SRP/Shader Graph stuff here. The particular variable you highlight in your screenshot is called _BaseColorMap for the texture part and _BaseColor for the color part. Where those variables are used depends on the rendering path you have selected and which features you have enabled in the shader.
Once the code stabilizes it will be easier to point to specific bits of code to show what does what. I'm looking forward to that myself.