From 36e02a959acfc08cc0b283ca8024dd8e575fd9e1 Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Sun, 4 Oct 2020 23:03:03 +0200 Subject: [PATCH] wip --- src/core/useThree.js | 6 +++--- src/effects/index.js | 1 + src/plugin.js | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/core/useThree.js b/src/core/useThree.js index 861f9f0..9ed78f1 100644 --- a/src/core/useThree.js +++ b/src/core/useThree.js @@ -28,9 +28,9 @@ export default function useThree() { // size const size = { - width: 0, height: 0, - wWidth: 0, wHeight: 0, - ratio: 0, + width: 1, height: 1, + wWidth: 1, wHeight: 1, + ratio: 1, }; // handlers diff --git a/src/effects/index.js b/src/effects/index.js index 69348a7..a607a04 100644 --- a/src/effects/index.js +++ b/src/effects/index.js @@ -6,4 +6,5 @@ export { default as FilmPass } from './FilmPass.js'; export { default as FXAAPass } from './FXAAPass.js'; export { default as HalftonePass } from './HalftonePass.js'; export { default as SAOPass } from './SAOPass.js'; +export { default as SMAAPass } from './SMAAPass.js'; export { default as UnrealBloomPass } from './UnrealBloomPass.js'; diff --git a/src/plugin.js b/src/plugin.js index 59045af..ecf15ac 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -71,9 +71,11 @@ export const TroisJSVuePlugin = { 'BokehPass', 'EffectComposer', 'FilmPass', + 'FXAAPass', 'HalftonePass', 'RenderPass', 'SAOPass', + 'SMAAPass', 'UnrealBloomPass', 'GLTFViewer',