Standard PBR shader written in Unity Cg
PBR-Shaders is a set of shader programs written in Cg to demonstrate how to implement a PBR roughness/metallic workflow for your graphical application.
The physical model for the BRDF consists of:
The lighting models are:
The Assets folder contains the shader library, textures, materials and demo scenes.
Folder | Description |
---|---|
Shaders | PBRLib.cginc & PBRShader.shader are both the PBR function library and main PBR shader program |
Materials | Sample materials such as gold, rough stone, slippery rock, walls, etc. |
Textures | Data for the roughness/metallic workflow, albedo, occlusion and environment maps |
Scenes | Just demo scenes |
PBR textures:
Environment maps:
MIT