···11# flo-bit portfolio
2233-this is my portfolio, created using Svelte, Threlte and TailwindCSS. WIP.
33+this is my portfolio, created using sveltekit, threlte, threejs and tailwind. wip.
4455[see it live here](https://flo-bit.github.io/)
6677-77+[vr version here](https://flo-bit.github.io/vr) (only tested on quest 3)
88+99+## demos
1010+1111+
1212+1313+https://github.com/flo-bit/flo-bit.github.io/assets/45694132/481296b2-f36d-466c-9741-4dd5771eb306
1414+1515+https://github.com/flo-bit/flo-bit.github.io/assets/45694132/a251ab6f-a416-4a2d-905f-8dffb2e36e0f
1616+
+16-2
src/lib/vr/Scene.svelte
···11<script lang="ts">
22- import { T } from '@threlte/core';
22+ import { T, useThrelte } from '@threlte/core';
33 import { Environment, interactivity } from '@threlte/extras';
4455 import Stars from './components/Stars.svelte';
···1414 import Controls from './components/Controls.svelte';
1515 import Pong from './sections/Pong.svelte';
16161717+ import { HalfFloatType, EquirectangularReflectionMapping, SRGBColorSpace } from 'three';
1818+1919+ import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader.js';
2020+1721 interactivity();
1822 pointerControls('left');
1923 pointerControls('right');
2424+2525+ const { scene } = useThrelte();
2626+2727+ const loader = new RGBELoader();
2828+ loader.setDataType(HalfFloatType);
2929+3030+ loader.load('/shanghai_riverside_1k.hdr', (texture) => {
3131+ texture.mapping = EquirectangularReflectionMapping;
3232+ texture.colorSpace = SRGBColorSpace;
3333+ scene.environment = texture;
3434+ });
2035</script>
21362237<Controller right />
···3045</T.PerspectiveCamera>
31463247<Stars />
3333-<Environment files="/shanghai_riverside_1k.hdr" />
34483549<T.DirectionalLight position={[0, 1, 0]} intensity={0.5} />
3650