mikegough / 3D-Landscape-Simulator

A web based ST-Sim application with 3D visualization.
0 stars 1 forks source link

Modular-ize shaders between non-spatial and spatial vegetation. #7

Closed TaylorMutch closed 7 years ago

TaylorMutch commented 8 years ago

We currently try to use the same shaders between the spatial and non-spatial runs for vegetation. Due to the differences in placement constraints (non-spatial is informed by various exterior factors, including elevation and potentially slope and other factors; spatial is informed directly from stratum raster data), we should separate the two.

However, the code is largely the same except for a couple if-then statements. It may be useful to do some sort of modular setup similar to what the three.js library does for specifying it's shaders.

TaylorMutch commented 7 years ago

Now that we are running the visualization completely with spatial inputs (with non-spatial options), we no longer need to have a distinction between what we show for a non-spatial run and a spatially explicit run.