~nasser/lospec-2

813a085e27202417f04063958ce0f79c5ce60776 — Ramsey Nasser 7 months ago 792b6b7
Add output pass, fixes palette color issues
1 files changed, 2 insertions(+), 0 deletions(-)

M main.js
M main.js => main.js +2 -0
@@ 5,6 5,7 @@ import * as THREE from "three"
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer'
import { RenderPass } from 'three/examples/jsm/postprocessing/RenderPass'
import { OutputPass } from 'three/examples/jsm/postprocessing/OutputPass'

import ls16 from "./ls16"
// import * as Tone from 'tone'


@@ 43,6 44,7 @@ new OrbitControls(camera, renderer.domElement)

const composer = new EffectComposer(renderer)
composer.addPass(new RenderPass(scene, camera))
composer.addPass(new OutputPass())

new THREE.TextureLoader().load(ls16.palette, palette => {
    const pass = palettePass(palette)