diff --git a/src/lib/shaders/volume.frag b/src/lib/shaders/volume.frag index ecee761..7521585 100644 --- a/src/lib/shaders/volume.frag +++ b/src/lib/shaders/volume.frag @@ -18,6 +18,7 @@ uniform float gHG; uniform float dataEpsilon; uniform vec3 bottomColor; uniform float bottomHeight; +uniform vec3 displacement; // Optional parameters, for when a solid surface is being drawn along with // the volume data. @@ -163,7 +164,7 @@ void main(void){ vec3 dg=vec3(1)/vec3(volumeTexSize); for(float t=tBox.x;t import TimeLine from './components/TimeLine.svelte'; - import { dataSlices, currentTimeIndex, totalSlices } from './stores/allSlices.store'; + import { dataSlices, totalSlices } from './stores/allSlices.store'; import { cloudLayerSettings, rainLayerSettings, @@ -9,6 +9,8 @@ temperatureLayerSettings } from './stores/viewer.store'; + import { currentTimeIndex } from './sceneSetup/updateMaterial'; + import Stats from '$lib/components/Stats.svelte'; import Viewer from './components/Viewer.svelte'; // import Viewer from '$lib/components/viewerExample.svelte'; diff --git a/src/routes/viewer/components/TimeLine.svelte b/src/routes/viewer/components/TimeLine.svelte index 0ddbdc1..eafeb3e 100644 --- a/src/routes/viewer/components/TimeLine.svelte +++ b/src/routes/viewer/components/TimeLine.svelte @@ -1,14 +1,17 @@