Would learning some GLSL help with Unity Shading?

So I’ve been fiddling with Unity for about a year now diving into almost everything I can find just trying to see what I enjoyed the most, and my favorite by far has been Shaders. I really don’t want to be a “Master of none” of course I still want to fiddle with everything but I really want to dive deep into at least 1 or 2 things and truly “master” something, and I think one of those things are Shaders.

So I’ve been doing tutorials and am starting to get a hang of things but I would really like to see some of the theory behind all of this to understand it better, and from what I’ve gathered Unity uses more of a HLSL aspect.

Finally my question. Would reading this book(Linked below) on theory, that does its practice in GLSL help me in Unity at all? or should I try to find a theory book that does its practice in with HLSL?

I am assuming that GLSL and HLSL are just like C# and C++, meaning both can do the same things just have different ways of going about it. Am I wrong to assume this?

Thank you for reading through my lengthy post for such a simple question.

1 Answer

1

i guess for basics yes, but i’d look for a book like this
which is exactly 1:1 for unity shaders. i’ve read the book my self, and it helped me alot for a basic understanding in cg shader programming!

btw. have a look on the web what’s the diffrence between hagl and glsl and cg . they’re based all on C language but it’s nice to see what the diffrence are

–

Note that you can write [GLSL shaders directly in Unity][1], however they can't be cross compiled like cg/HLSL shaders. Unity does not recommend to use GLSL unless you only target OpenGL only platforms [1]: https://docs.unity3d.com/Manual/SL-GLSLShaderPrograms.html

–