BSDF-Visualizer
BSDF-Visualizer copied to clipboard
Project for scientific visualization
trafficstars
BSDF-Visualizer

System Requirements
- WebGL 2 required.
- Windows / Mac: Chrome recommended.
- Linux: Firefox is recommended (see below).
- For Firefox:
about:config> setdom.moduleScripts.enabledtotrue
Demo
- Available LIVE here: https://natevm.github.io/BSDF-Visualizer/
Hacking
Using Glslify with shaders
Glslify is quite handy and I am currently
using it for our heatmap. Our glslify-enabled shaders are in Shaders/glslify_raw.
In order to work with these shaders:
- Make sure glslify is set up correctly
npm install -g glslifyto install the CLI command.npm installto install local glslify dependencies- Edit the shader in
Shaders/glslify_raw. - Run
preprocess_glslify_shaders.py. This will generate (inlined) shaders and place them underShaders/glslify_processed. :warning: Do not edit the shaders underglslify_processed. They will get overwritten bypreprocess_glslify_shaders.py