Page 1 of 1

GLSL or HLSL?

Posted: Fri May 10, 2024 3:15 pm
by minimy
Greetings! I have a doubt, I don't see in subsystem folder opengl, but it seems that the saders in PB work with GLSL. Should I use GLSL for shaders or HLSL?
I'm trying to learn shader language (a nightmare :mrgreen: ), what should I learn, GLSL?

Re: GLSL or HLSL?

Posted: Fri May 10, 2024 3:50 pm
by DarkDragon
Both, depending on the renderer. Or use SPIR-V, you can also convert it to HLSL and GLSL.

https://github.com/KhronosGroup/SPIRV-Cross

Re: GLSL or HLSL?

Posted: Fri May 10, 2024 10:17 pm
by minimy
Thanks DarkDragon, interesting!