natevm / BSDF-Visualizer

Project for scientific visualization
MIT License
18 stars 4 forks source link

BSDF-Visualizer

Screenshot

System Requirements

Demo

Hacking

See our documentation wiki.

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:

  1. Make sure glslify is set up correctly
    1. npm install -g glslify to install the CLI command.
    2. npm install to install local glslify dependencies
  2. Edit the shader in Shaders/glslify_raw.
  3. Run preprocess_glslify_shaders.py. This will generate (inlined) shaders and place them under Shaders/glslify_processed. :warning: Do not edit the shaders under glslify_processed. They will get overwritten by preprocess_glslify_shaders.py