Physically based rendering library for Processing

I have put online a Processing library for physically based rendering, based on this shader by Nick Galko. The latest release is available here, just unzip the ‘SimplePBR’ folder into your Processing ‘libraries’ folder.

Physically Based Rendering (PBR) is a method for shading and rendering that provides a more accurate representation of how light interacts with surfaces. In short, it gives your Processing sketches a nicer lighting, and the possibility of using materials created by 3D artist and shared online. A nice introduction on what PBR is and the different lighting terms involved can be found in these article series by the jMonkey Engine team.

The library is pretty simple, as it is intended to be easily added to any 3D sketch, without the need of providing any material or cubemap. Take a look at the included examples to see how to use it.

If you use this library for commercial work, please consider donating here:





The source code is included and is hosted on the same Github repoFurther information on materials and cubemaps is available on the repo’s readme.

Some of the sketches I have created with the library are collected here:




Leave a Reply

Your email address will not be published. Required fields are marked *