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.
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
– dan_wipfNote 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
– Bunny83