natevm / BSDF-Visualizer

Project for scientific visualization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BSDF-Visualizer

Screenshot

System Requirements

  • WebGL 2 required.
  • Windows / Mac: Chrome recommended.
  • Linux: Firefox is recommended (see below).
  • For Firefox: about:config > set dom.moduleScripts.enabled to true

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
  2. npm install -g glslify to install the CLI command.
  3. npm install to install local glslify dependencies
  4. Edit the shader in Shaders/glslify_raw.
  5. Run preprocess_glslify_shaders.py. This will generate (inlined) shaders and place them under Shaders/glslify_processed. ⚠️ Do not edit the shaders under glslify_processed. They will get overwritten by preprocess_glslify_shaders.py

About

Project for scientific visualization

License:MIT License


Languages

Language:JavaScript 94.6%Language:GLSL 3.5%Language:CSS 1.4%Language:HTML 0.4%Language:Shell 0.2%Language:Python 0.0%