Hey guys,
I have to put together a simple PBR shader in GLSL for work.
I already know a lot of great sources about PBR theory but now I'm looking for some easy code snippet to start with. No problem if its' HLSL or CGFX or whatever, just need some pseudo-code to start developing a simple GGX generic metal shader.
Can you suggest any web source?
Thanks!
PS: I already had a look at great shader works by Kodde and other people, but they are definitely a bit complex to start with :P
Replies
The files you'll be interested in is called UnityStandardCore.cginc, UnityStandardBDRF.cginc and UnityPBSLighting.cginc in the CGIncludes folder. It's all HLSL.