This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Visualization of Shirley and Chui's Concentric Mapping | |
// projected onto a hemisphere -- e.g. for irradiance tracing. | |
// The points are drawn to the window and C code is output to the console. | |
// This import is needed since Processing 4. | |
// In Processing complains about it not finding it: | |
// In the menubar go to to sketch -> import library -> add library, | |
// enter javafx in the searchbox and download it. | |
import processing.javafx.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 | |
// Tonemapping | |
// ----------- | |
// Some of these are attributed to certain games. | |
// But this is mostly secondhand info, so take it with a grain of salt. | |
vec3 Tonemap_Reinhard(vec3 x) { | |
// Simplest Reinhard tonemapper. |
OlderNewer