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 first 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.

ATTENTION! At the moment it has been tested on Windows and Linux with nVidia graphics. The shader fails to compile on Intel integrated graphics and osX, as I don’t usually work with any of them I don’t plan to look into it in the near future. Use it carefully, and if you find the solution, please tell me or do a pull-request.

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.