ohzi-core 8.1.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.module.js +1 -1
- package/build/index.module.js.map +1 -1
- package/package.json +1 -1
- package/src/BaseApplication.js +3 -1
- package/src/Browser.js +2 -1
- package/src/CameraManager.js +2 -1
- package/src/Capabilities.js +2 -1
- package/src/Configuration.js +2 -1
- package/src/CustomBezierCurve.js +3 -1
- package/src/Debug.js +15 -11
- package/src/EventManager.js +2 -1
- package/src/Graphics.js +11 -10
- package/src/Initializer.js +19 -18
- package/src/Input.js +3 -2
- package/src/KeyboardInput.js +3 -1
- package/src/OS.js +2 -1
- package/src/OScreen.js +2 -1
- package/src/OrthographicCamera.js +4 -2
- package/src/PerspectiveCamera.js +4 -2
- package/src/ReflectionPlaneContext.js +2 -1
- package/src/RenderLayers.js +3 -1
- package/src/RenderLoop.js +11 -9
- package/src/RenderOrder.js +3 -1
- package/src/ResourceContainer.js +3 -2
- package/src/SceneManager.js +2 -1
- package/src/Screen.js +3 -2
- package/src/Time.js +2 -1
- package/src/UI.js +5 -4
- package/src/action_sequencer/ActionEvent.js +4 -2
- package/src/action_sequencer/ActionInterpolator.js +4 -2
- package/src/action_sequencer/ActionSequencer.js +4 -2
- package/src/action_sequencer/NumberInterpolator.js +5 -3
- package/src/action_sequencer/VectorInterpolator.js +4 -2
- package/src/blitter_index.js +5 -5
- package/src/canvas_drawer/CanvasDrawer.js +3 -1
- package/src/canvas_drawer/MultiLineTextDrawer.js +4 -2
- package/src/canvas_drawer/SimpleTextDrawer.js +4 -2
- package/src/components/AudioClip.js +3 -1
- package/src/components/AxisHelper.js +3 -1
- package/src/components/BaseObject.js +3 -1
- package/src/components/EdgeMesh.js +3 -1
- package/src/components/GeometryEdgeVisualizer.js +5 -2
- package/src/components/Grid.js +5 -2
- package/src/components/Line.js +3 -1
- package/src/components/MultiLinePath.js +4 -2
- package/src/components/MultiLineText2D.js +4 -2
- package/src/components/ObjectAxis.js +4 -2
- package/src/components/ObjectOrientedBoundingBox.js +3 -1
- package/src/components/PlaneHelper.js +3 -1
- package/src/components/Shape2D.js +4 -2
- package/src/components/Shape3D.js +4 -2
- package/src/components/Text2D.js +5 -3
- package/src/components/UIElement.js +11 -9
- package/src/components/UpdatableMaterialMesh.js +3 -1
- package/src/components/WorldImage.js +3 -1
- package/src/components/mouse_interactors/ObjectRotator.js +6 -4
- package/src/components/sdf_text/SDFText.js +4 -2
- package/src/components/sdf_text/SDFTextBatch.js +6 -4
- package/src/components/sdf_text/TextGlyph.js +3 -1
- package/src/data_textures/CustomDataTexture.js +3 -1
- package/src/data_textures/RGBADataTexture.js +4 -2
- package/src/data_textures/RGBAFloatDataTexture.js +4 -2
- package/src/data_textures/RGBDataTexture.js +4 -2
- package/src/data_textures/RGBFloatDataTexture.js +4 -2
- package/src/editor/ManipulatorHandle.js +6 -4
- package/src/editor/ObjectEditor.js +6 -4
- package/src/editor/ObjectManipulator.js +6 -4
- package/src/editor/ObjectPicker.js +5 -3
- package/src/gpu_particles/GPUParticleSystem.js +4 -2
- package/src/gpu_particles/ParticleAttribute.js +5 -3
- package/src/gpu_particles/ParticlePositionAttribute.js +5 -3
- package/src/html_utilities/CSSAnimator.js +6 -4
- package/src/html_utilities/css_animator_states/Animating.js +6 -4
- package/src/html_utilities/css_animator_states/Idle.js +3 -1
- package/src/index.js +111 -111
- package/src/materials/AddMaterial.js +5 -2
- package/src/materials/AlphaFilterMaterial.js +5 -2
- package/src/materials/BaseShaderMaterial.js +3 -1
- package/src/materials/BlitMaterial.js +3 -1
- package/src/materials/BloomComposeMaterial.js +6 -4
- package/src/materials/BoxBlurMaterial.js +5 -2
- package/src/materials/ClearAlphaMaterial.js +5 -3
- package/src/materials/ClearColorMaterial.js +5 -3
- package/src/materials/ClearDepthNormalMaterial.js +5 -2
- package/src/materials/DeferredRendererComposeMaterial.js +5 -2
- package/src/materials/DepthNormalMaterial.js +3 -1
- package/src/materials/DisplayNormalTextureMaterial.js +5 -2
- package/src/materials/DualFilteringBlurMaterial.js +5 -2
- package/src/materials/FXAAMaterial.js +5 -3
- package/src/materials/GaussianBlurMaterial.js +6 -2
- package/src/materials/LuminosityHighPassMaterial.js +6 -2
- package/src/materials/MedianFilterMaterial.js +5 -2
- package/src/materials/NormalMaterial.js +3 -1
- package/src/materials/SDFScreenTextMaterial.js +5 -2
- package/src/materials/SDFTextMaterial.js +6 -3
- package/src/materials/SSAOComposeMaterial.js +5 -2
- package/src/materials/SSAOMaterial.js +7 -3
- package/src/materials/ScreenSpaceTextureMaterial.js +4 -2
- package/src/materials/UIElementMaterial.js +6 -3
- package/src/materials/UnrealBloomComposeMaterial.js +6 -2
- package/src/materials/UnrealBlurMaterial.js +5 -2
- package/src/materials/UnrealComposeMaterial.js +5 -2
- package/src/materials/ViewPositionMaterial.js +3 -1
- package/src/materials/deferred/DeferredPointLightMaterial.js +5 -2
- package/src/materials/gpu_particles/AttributeUpdateMaterial.js +8 -4
- package/src/materials/gpu_particles/BasicParticleMaterial.js +3 -1
- package/src/materials/gpu_particles/ParticleStorageMaterial.js +4 -1
- package/src/materials/gpu_particles/PositionStorageMaterial.js +5 -4
- package/src/object_pool/Pool.js +3 -1
- package/src/primitives/Arrow.js +3 -1
- package/src/primitives/Cube.js +3 -1
- package/src/primitives/HorizontalPlane.js +3 -1
- package/src/primitives/Sphere.js +3 -1
- package/src/primitives/VerticalPlane.js +3 -1
- package/src/raycast/GroupRaycaster.js +7 -5
- package/src/raycast/PlaneDragResolver.js +6 -4
- package/src/raycast/PlaneRaycastResolver.js +3 -1
- package/src/raycast/PlaneRaycaster.js +5 -3
- package/src/raycast/RaycastResolver.js +3 -1
- package/src/raycast/SurfaceDragResolver.js +6 -4
- package/src/raycast/states/BaseState.js +3 -1
- package/src/raycast/states/IdleState.js +5 -3
- package/src/raycast/states/OnRaycastEnter.js +5 -3
- package/src/raycast/states/OnRaycastExit.js +5 -3
- package/src/raycast/states/OnRaycastHover.js +5 -3
- package/src/render_mode/BaseRender.js +3 -1
- package/src/render_mode/BloomRender.js +10 -8
- package/src/render_mode/DebugNormalsRender.js +8 -6
- package/src/render_mode/DeferredRender.js +10 -8
- package/src/render_mode/NormalAORender.js +13 -11
- package/src/render_mode/NormalRender.js +7 -5
- package/src/render_mode/OutlineRender.js +6 -3
- package/src/render_mode/PlanarReflectionsRender.js +9 -6
- package/src/render_mode/TransparencyMixRender.js +8 -4
- package/src/render_mode/UnrealBloomRender.js +11 -9
- package/src/render_mode/VRRender.js +7 -5
- package/src/render_utilities/Blitter.js +4 -2
- package/src/render_utilities/Blurrer.js +5 -3
- package/src/render_utilities/DepthAndNormalsRenderer.js +7 -5
- package/src/render_utilities/DualFilteringBlurrer.js +6 -4
- package/src/render_utilities/GaussianBlurrer.js +6 -4
- package/src/render_utilities/MedianFilter.js +5 -3
- package/src/render_utilities/ViewPositionRenderer.js +7 -5
- package/src/resource_loader/AbstractLoader.js +5 -3
- package/src/resource_loader/AsyncTextureLoader.js +4 -2
- package/src/resource_loader/AudioLoader.js +5 -3
- package/src/resource_loader/BasisLoader.js +4 -2
- package/src/resource_loader/CubemapLoader.js +6 -4
- package/src/resource_loader/DAELoader.js +6 -4
- package/src/resource_loader/DDSLoader.js +6 -4
- package/src/resource_loader/FileLoader.js +6 -4
- package/src/resource_loader/FontLoader.js +4 -2
- package/src/resource_loader/GLTFDRACOLoader.js +6 -4
- package/src/resource_loader/GLTFLoader.js +6 -4
- package/src/resource_loader/HDRCubeTextureLoader.js +6 -4
- package/src/resource_loader/JSONLoader.js +4 -2
- package/src/resource_loader/OBJLoader.js +6 -4
- package/src/resource_loader/PointArrayLoader.js +8 -6
- package/src/resource_loader/RGBETextureLoader.js +6 -4
- package/src/resource_loader/ResourceBatch.js +4 -2
- package/src/resource_loader/SVGLoader.js +6 -4
- package/src/resource_loader/TextLoader.js +6 -4
- package/src/resource_loader/TextureLoader.js +4 -2
- package/src/resource_loader/VideoLoader.js +4 -2
- package/src/shaders/anti_aliasing/fxaa.frag +10 -10
- package/src/shaders/basic_line/basic_line.vert +1 -1
- package/src/static_batcher/BatchedMesh.js +7 -5
- package/src/static_batcher/GeometryBatch.js +3 -1
- package/src/static_batcher/GeometryBatcher.js +4 -3
- package/src/static_batcher/MeshBatcher.js +4 -2
- package/src/ui/ui_element_position/ScreenSpacePosition.js +3 -1
- package/src/ui/ui_element_position/WorldSpacePosition.js +4 -2
- package/src/ui/ui_element_state/OnIdle.js +4 -2
- package/src/ui/ui_element_state/OnMouseEnter.js +4 -2
- package/src/ui/ui_element_state/OnMouseExit.js +4 -2
- package/src/ui/ui_element_state/OnMouseHover.js +4 -2
- package/src/ui/ui_element_state/UIElementState.js +3 -1
- package/src/utilities/ArrayUtilities.js +3 -1
- package/src/utilities/CameraUtilities.js +6 -5
- package/src/utilities/EasingFunctions.js +35 -35
- package/src/utilities/FrustumPointFitter.js +3 -1
- package/src/utilities/GeometryUtilities.js +3 -1
- package/src/utilities/HTMLUtilities.js +3 -1
- package/src/utilities/ImageUtilities.js +3 -1
- package/src/utilities/MeshSampler.js +2 -1
- package/src/utilities/ModelUtilities.js +2 -1
- package/src/utilities/OMath.js +3 -1
- package/src/utilities/ObjectUtilities.js +3 -1
- package/src/utilities/OrthographicFrustumPointFitter.js +3 -1
- package/src/utilities/PerspectiveFrustumPointFitter.js +5 -2
- package/src/utilities/StringUtilities.js +3 -1
- package/src/utilities/TimeUtilities.js +3 -1
- package/src/utilities/Validation.js +3 -1
- package/src/view_components/ApplicationView.js +7 -5
- package/src/view_components/ViewComponent.js +5 -3
- package/src/view_components/ViewComponentManager.js +3 -2
- package/src/view_components/ViewContext.js +2 -1
- package/src/view_components/ViewManager.js +4 -3
- package/src/view_components/ViewState.js +3 -1
- package/src/view_components/transition/ActionSequencerBuilder.js +7 -5
- package/src/view_components/transition/DrawIOAnimationSheet.js +3 -1
- package/src/view_components/transition/TransitionTable.js +4 -2
- package/src/view_components/transition/ViewStateTransitionHandler.js +5 -3
- package/types/raycast/states/OnRaycastHover.d.ts +2 -1
- package/types/render_mode/DebugNormalsRender.d.ts +2 -1
- package/types/resource_loader/GLTFLoader.d.ts +3 -1
- package/types/ui/ui_element_state/OnIdle.d.ts +1 -1
- package/types/ui/ui_element_state/OnMouseEnter.d.ts +1 -1
- package/types/ui/ui_element_state/OnMouseExit.d.ts +1 -1
- package/types/view_components/ApplicationView.d.ts +1 -1
package/src/index.js
CHANGED
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
import AbstractLoader from './resource_loader/AbstractLoader';
|
|
2
|
-
import ActionSequencerBuilder from './view_components/transition/ActionSequencerBuilder';
|
|
3
|
-
import ApplicationView from './view_components/ApplicationView';
|
|
4
|
-
import BaseApplication from './BaseApplication';
|
|
5
|
-
import BaseRender from './render_mode/BaseRender';
|
|
6
|
-
import BaseShaderMaterial from './materials/BaseShaderMaterial';
|
|
7
|
-
import BlitMaterial from './materials/BlitMaterial';
|
|
8
|
-
import Browser from './Browser';
|
|
9
|
-
import CameraManager from './CameraManager';
|
|
10
|
-
import Capabilities from './Capabilities';
|
|
11
|
-
import CanvasDrawer from './canvas_drawer/CanvasDrawer';
|
|
12
|
-
import Configuration from './Configuration';
|
|
13
|
-
import CSSAnimator from './html_utilities/CSSAnimator';
|
|
14
|
-
import DrawIOAnimationSheet from './view_components/transition/DrawIOAnimationSheet';
|
|
15
|
-
import Debug from './Debug';
|
|
16
|
-
import DebugNormalsRender from './render_mode/DebugNormalsRender';
|
|
17
|
-
import EventManager from './EventManager';
|
|
18
|
-
import Graphics from './Graphics';
|
|
19
|
-
import Input from './Input';
|
|
20
|
-
import Initializer from './Initializer';
|
|
21
|
-
import NormalAORender from './render_mode/NormalAORender';
|
|
22
|
-
import NormalRender from './render_mode/NormalRender';
|
|
23
|
-
import VRRender from './render_mode/VRRender';
|
|
24
|
-
import UnrealBloomRender from './render_mode/UnrealBloomRender';
|
|
25
|
-
import OrthographicCamera from './OrthographicCamera';
|
|
26
|
-
import OS from './OS';
|
|
27
|
-
import PerspectiveCamera from './PerspectiveCamera';
|
|
28
|
-
import RenderLoop from './RenderLoop';
|
|
29
|
-
import SceneManager from './SceneManager';
|
|
30
|
-
import OScreen from './OScreen';
|
|
31
|
-
import Screen from './Screen';
|
|
32
|
-
import SimpleTextDrawer from './canvas_drawer/SimpleTextDrawer';
|
|
33
|
-
import Time from './Time';
|
|
34
|
-
import UI from './UI';
|
|
35
|
-
import ViewComponent from './view_components/ViewComponent';
|
|
36
|
-
import ViewComponentManager from './view_components/ViewComponentManager';
|
|
37
|
-
import ViewManager from './view_components/ViewManager';
|
|
38
|
-
import ViewContext from './view_components/ViewContext';
|
|
39
|
-
import TransitionTable from './view_components/transition/TransitionTable';
|
|
40
|
-
|
|
41
|
-
import Arrow from './primitives/Arrow';
|
|
42
|
-
import Cube from './primitives/Cube';
|
|
43
|
-
import HorizontalPlane from './primitives/HorizontalPlane';
|
|
44
|
-
import Sphere from './primitives/Sphere';
|
|
45
|
-
import VerticalPlane from './primitives/VerticalPlane';
|
|
46
|
-
|
|
47
|
-
import ArrayUtilities from './utilities/ArrayUtilities';
|
|
48
|
-
import CameraUtilities from './utilities/CameraUtilities';
|
|
49
|
-
import EasingFunctions from './utilities/EasingFunctions';
|
|
50
|
-
import FrustumPointFitter from './utilities/FrustumPointFitter';
|
|
51
|
-
import GeometryUtilities from './utilities/GeometryUtilities';
|
|
52
|
-
import HTMLUtilities from './utilities/HTMLUtilities';
|
|
53
|
-
import ImageUtilities from './utilities/ImageUtilities';
|
|
54
|
-
import OMath from './utilities/OMath';
|
|
55
|
-
import MeshSampler from './utilities/MeshSampler';
|
|
56
|
-
import ModelUtilities from './utilities/ModelUtilities';
|
|
57
|
-
import ObjectUtilities from './utilities/ObjectUtilities';
|
|
58
|
-
import StringUtilities from './utilities/StringUtilities';
|
|
59
|
-
import TimeUtilities from './utilities/TimeUtilities';
|
|
60
|
-
import Validation from './utilities/Validation';
|
|
61
|
-
import PerspectiveFrustumPointFitter from './utilities/PerspectiveFrustumPointFitter';
|
|
62
|
-
import OrthographicFrustumPointFitter from './utilities/OrthographicFrustumPointFitter';
|
|
63
|
-
|
|
64
|
-
import Grid from './components/Grid';
|
|
65
|
-
import Line from './components/Line';
|
|
66
|
-
import Text2D from './components/Text2D';
|
|
67
|
-
import WorldImage from './components/WorldImage';
|
|
68
|
-
import UIElement from './components/UIElement';
|
|
69
|
-
import UpdatableMaterialMesh from './components/UpdatableMaterialMesh';
|
|
70
|
-
|
|
71
|
-
import SDFTextBatch from './components/sdf_text/SDFTextBatch';
|
|
72
|
-
|
|
73
|
-
import ActionSequencer from './action_sequencer/ActionSequencer';
|
|
74
|
-
import ActionEvent from './action_sequencer/ActionEvent';
|
|
75
|
-
import ActionInterpolator from './action_sequencer/ActionInterpolator';
|
|
76
|
-
import NumberInterpolator from './action_sequencer/NumberInterpolator';
|
|
77
|
-
import VectorInterpolator from './action_sequencer/VectorInterpolator';
|
|
78
|
-
|
|
79
|
-
import MedianFilter from './render_utilities/MedianFilter';
|
|
80
|
-
import GaussianBlurrer from './render_utilities/GaussianBlurrer';
|
|
81
|
-
import DualFilteringBlurrer from './render_utilities/DualFilteringBlurrer';
|
|
82
|
-
|
|
83
|
-
import Blurrer from './render_utilities/Blurrer';
|
|
84
|
-
|
|
85
|
-
import GPUParticleSystem from './gpu_particles/GPUParticleSystem';
|
|
86
|
-
import ParticleAttribute from './gpu_particles/ParticleAttribute';
|
|
87
|
-
import ParticlePositionAttribute from './gpu_particles/ParticlePositionAttribute';
|
|
88
|
-
|
|
89
|
-
import DualFilteringBlurMaterial from './materials/DualFilteringBlurMaterial';
|
|
1
|
+
import { AbstractLoader } from './resource_loader/AbstractLoader';
|
|
2
|
+
import { ActionSequencerBuilder } from './view_components/transition/ActionSequencerBuilder';
|
|
3
|
+
import { ApplicationView } from './view_components/ApplicationView';
|
|
4
|
+
import { BaseApplication } from './BaseApplication';
|
|
5
|
+
import { BaseRender } from './render_mode/BaseRender';
|
|
6
|
+
import { BaseShaderMaterial } from './materials/BaseShaderMaterial';
|
|
7
|
+
import { BlitMaterial } from './materials/BlitMaterial';
|
|
8
|
+
import { Browser } from './Browser';
|
|
9
|
+
import { CameraManager } from './CameraManager';
|
|
10
|
+
import { Capabilities } from './Capabilities';
|
|
11
|
+
import { CanvasDrawer } from './canvas_drawer/CanvasDrawer';
|
|
12
|
+
import { Configuration } from './Configuration';
|
|
13
|
+
import { CSSAnimator } from './html_utilities/CSSAnimator';
|
|
14
|
+
import { DrawIOAnimationSheet } from './view_components/transition/DrawIOAnimationSheet';
|
|
15
|
+
import { Debug } from './Debug';
|
|
16
|
+
import { DebugNormalsRender } from './render_mode/DebugNormalsRender';
|
|
17
|
+
import { EventManager } from './EventManager';
|
|
18
|
+
import { Graphics } from './Graphics';
|
|
19
|
+
import { Input } from './Input';
|
|
20
|
+
import { Initializer } from './Initializer';
|
|
21
|
+
import { NormalAORender } from './render_mode/NormalAORender';
|
|
22
|
+
import { NormalRender } from './render_mode/NormalRender';
|
|
23
|
+
import { VRRender } from './render_mode/VRRender';
|
|
24
|
+
import { UnrealBloomRender } from './render_mode/UnrealBloomRender';
|
|
25
|
+
import { OrthographicCamera } from './OrthographicCamera';
|
|
26
|
+
import { OS } from './OS';
|
|
27
|
+
import { PerspectiveCamera } from './PerspectiveCamera';
|
|
28
|
+
import { RenderLoop } from './RenderLoop';
|
|
29
|
+
import { SceneManager } from './SceneManager';
|
|
30
|
+
import { OScreen } from './OScreen';
|
|
31
|
+
import { Screen } from './Screen';
|
|
32
|
+
import { SimpleTextDrawer } from './canvas_drawer/SimpleTextDrawer';
|
|
33
|
+
import { Time } from './Time';
|
|
34
|
+
import { UI } from './UI';
|
|
35
|
+
import { ViewComponent } from './view_components/ViewComponent';
|
|
36
|
+
import { ViewComponentManager } from './view_components/ViewComponentManager';
|
|
37
|
+
import { ViewManager } from './view_components/ViewManager';
|
|
38
|
+
import { ViewContext } from './view_components/ViewContext';
|
|
39
|
+
import { TransitionTable } from './view_components/transition/TransitionTable';
|
|
40
|
+
|
|
41
|
+
import { Arrow } from './primitives/Arrow';
|
|
42
|
+
import { Cube } from './primitives/Cube';
|
|
43
|
+
import { HorizontalPlane } from './primitives/HorizontalPlane';
|
|
44
|
+
import { Sphere } from './primitives/Sphere';
|
|
45
|
+
import { VerticalPlane } from './primitives/VerticalPlane';
|
|
46
|
+
|
|
47
|
+
import { ArrayUtilities } from './utilities/ArrayUtilities';
|
|
48
|
+
import { CameraUtilities } from './utilities/CameraUtilities';
|
|
49
|
+
import { EasingFunctions } from './utilities/EasingFunctions';
|
|
50
|
+
import { FrustumPointFitter } from './utilities/FrustumPointFitter';
|
|
51
|
+
import { GeometryUtilities } from './utilities/GeometryUtilities';
|
|
52
|
+
import { HTMLUtilities } from './utilities/HTMLUtilities';
|
|
53
|
+
import { ImageUtilities } from './utilities/ImageUtilities';
|
|
54
|
+
import { OMath } from './utilities/OMath';
|
|
55
|
+
import { MeshSampler } from './utilities/MeshSampler';
|
|
56
|
+
import { ModelUtilities } from './utilities/ModelUtilities';
|
|
57
|
+
import { ObjectUtilities } from './utilities/ObjectUtilities';
|
|
58
|
+
import { StringUtilities } from './utilities/StringUtilities';
|
|
59
|
+
import { TimeUtilities } from './utilities/TimeUtilities';
|
|
60
|
+
import { Validation } from './utilities/Validation';
|
|
61
|
+
import { PerspectiveFrustumPointFitter } from './utilities/PerspectiveFrustumPointFitter';
|
|
62
|
+
import { OrthographicFrustumPointFitter } from './utilities/OrthographicFrustumPointFitter';
|
|
63
|
+
|
|
64
|
+
import { Grid } from './components/Grid';
|
|
65
|
+
import { Line } from './components/Line';
|
|
66
|
+
import { Text2D } from './components/Text2D';
|
|
67
|
+
import { WorldImage } from './components/WorldImage';
|
|
68
|
+
import { UIElement } from './components/UIElement';
|
|
69
|
+
import { UpdatableMaterialMesh } from './components/UpdatableMaterialMesh';
|
|
70
|
+
|
|
71
|
+
import { SDFTextBatch } from './components/sdf_text/SDFTextBatch';
|
|
72
|
+
|
|
73
|
+
import { ActionSequencer } from './action_sequencer/ActionSequencer';
|
|
74
|
+
import { ActionEvent } from './action_sequencer/ActionEvent';
|
|
75
|
+
import { ActionInterpolator } from './action_sequencer/ActionInterpolator';
|
|
76
|
+
import { NumberInterpolator } from './action_sequencer/NumberInterpolator';
|
|
77
|
+
import { VectorInterpolator } from './action_sequencer/VectorInterpolator';
|
|
78
|
+
|
|
79
|
+
import { MedianFilter } from './render_utilities/MedianFilter';
|
|
80
|
+
import { GaussianBlurrer } from './render_utilities/GaussianBlurrer';
|
|
81
|
+
import { DualFilteringBlurrer } from './render_utilities/DualFilteringBlurrer';
|
|
82
|
+
|
|
83
|
+
import { Blurrer } from './render_utilities/Blurrer';
|
|
84
|
+
|
|
85
|
+
import { GPUParticleSystem } from './gpu_particles/GPUParticleSystem';
|
|
86
|
+
import { ParticleAttribute } from './gpu_particles/ParticleAttribute';
|
|
87
|
+
import { ParticlePositionAttribute } from './gpu_particles/ParticlePositionAttribute';
|
|
88
|
+
|
|
89
|
+
import { DualFilteringBlurMaterial } from './materials/DualFilteringBlurMaterial';
|
|
90
90
|
import * as BufferGeometryUtils from 'three/examples/jsm/utils/BufferGeometryUtils.js';
|
|
91
|
-
import MeshBatcher from './static_batcher/MeshBatcher';
|
|
92
|
-
|
|
93
|
-
import AudioLoader from './resource_loader/AudioLoader';
|
|
94
|
-
import BasisLoader from './resource_loader/BasisLoader';
|
|
95
|
-
import CubemapLoader from './resource_loader/CubemapLoader';
|
|
96
|
-
import DAELoader from './resource_loader/DAELoader';
|
|
97
|
-
import FileLoader from './resource_loader/FileLoader';
|
|
98
|
-
import FontLoader from './resource_loader/FontLoader';
|
|
99
|
-
import GLTFLoader from './resource_loader/GLTFLoader';
|
|
100
|
-
import GLTFDRACOLoader from './resource_loader/GLTFDRACOLoader';
|
|
101
|
-
import HDRCubeTextureLoader from './resource_loader/HDRCubeTextureLoader';
|
|
102
|
-
import JSONLoader from './resource_loader/JSONLoader';
|
|
103
|
-
import OBJLoader from './resource_loader/OBJLoader';
|
|
104
|
-
import PointArrayLoader from './resource_loader/PointArrayLoader';
|
|
105
|
-
import RGBETextureLoader from './resource_loader/RGBETextureLoader';
|
|
106
|
-
import TextLoader from './resource_loader/TextLoader';
|
|
107
|
-
import AsyncTextureLoader from './resource_loader/AsyncTextureLoader';
|
|
108
|
-
import TextureLoader from './resource_loader/TextureLoader';
|
|
109
|
-
import VideoLoader from './resource_loader/VideoLoader';
|
|
110
|
-
|
|
111
|
-
import ResourceBatch from './resource_loader/ResourceBatch';
|
|
112
|
-
import ResourceContainer from './ResourceContainer';
|
|
91
|
+
import { MeshBatcher } from './static_batcher/MeshBatcher';
|
|
92
|
+
|
|
93
|
+
import { AudioLoader } from './resource_loader/AudioLoader';
|
|
94
|
+
import { BasisLoader } from './resource_loader/BasisLoader';
|
|
95
|
+
import { CubemapLoader } from './resource_loader/CubemapLoader';
|
|
96
|
+
import { DAELoader } from './resource_loader/DAELoader';
|
|
97
|
+
import { FileLoader } from './resource_loader/FileLoader';
|
|
98
|
+
import { FontLoader } from './resource_loader/FontLoader';
|
|
99
|
+
import { GLTFLoader } from './resource_loader/GLTFLoader';
|
|
100
|
+
import { GLTFDRACOLoader } from './resource_loader/GLTFDRACOLoader';
|
|
101
|
+
import { HDRCubeTextureLoader } from './resource_loader/HDRCubeTextureLoader';
|
|
102
|
+
import { JSONLoader } from './resource_loader/JSONLoader';
|
|
103
|
+
import { OBJLoader } from './resource_loader/OBJLoader';
|
|
104
|
+
import { PointArrayLoader } from './resource_loader/PointArrayLoader';
|
|
105
|
+
import { RGBETextureLoader } from './resource_loader/RGBETextureLoader';
|
|
106
|
+
import { TextLoader } from './resource_loader/TextLoader';
|
|
107
|
+
import { AsyncTextureLoader } from './resource_loader/AsyncTextureLoader';
|
|
108
|
+
import { TextureLoader } from './resource_loader/TextureLoader';
|
|
109
|
+
import { VideoLoader } from './resource_loader/VideoLoader';
|
|
110
|
+
|
|
111
|
+
import { ResourceBatch } from './resource_loader/ResourceBatch';
|
|
112
|
+
import { ResourceContainer } from './ResourceContainer';
|
|
113
113
|
|
|
114
114
|
export {
|
|
115
115
|
AbstractLoader,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import BlitMaterial from './BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from './BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/add/add.frag';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
class AddMaterial extends BlitMaterial
|
|
5
6
|
{
|
|
6
7
|
constructor(nMips)
|
|
7
8
|
{
|
|
@@ -15,3 +16,5 @@ export default class AddMaterial extends BlitMaterial
|
|
|
15
16
|
this.uniforms._SecondTex.value = tex;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
19
|
+
|
|
20
|
+
export { AddMaterial };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import BlitMaterial from './BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from './BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/dual_filter_blur/alpha_filter.frag';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
class AlphaFilterMaterial extends BlitMaterial
|
|
5
6
|
{
|
|
6
7
|
constructor(use_alpha_mask, upsample)
|
|
7
8
|
{
|
|
@@ -18,3 +19,5 @@ export default class AlphaFilterMaterial extends BlitMaterial
|
|
|
18
19
|
return this.uniforms._Offset.value;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
22
|
+
|
|
23
|
+
export { AlphaFilterMaterial };
|
|
@@ -4,7 +4,7 @@ import basic_frag from '../shaders/basic_color/basic_color.frag';
|
|
|
4
4
|
import { ShaderMaterial } from 'three';
|
|
5
5
|
import { Color } from 'three';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
class BaseShaderMaterial extends ShaderMaterial
|
|
8
8
|
{
|
|
9
9
|
constructor(vert, frag, uniforms)
|
|
10
10
|
{
|
|
@@ -17,3 +17,5 @@ export default class BaseShaderMaterial extends ShaderMaterial
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
+
|
|
21
|
+
export { BaseShaderMaterial };
|
|
@@ -6,7 +6,7 @@ import { Vector2 } from 'three';
|
|
|
6
6
|
import { NoBlending } from 'three';
|
|
7
7
|
import { AlwaysDepth } from 'three';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
class BlitMaterial extends ShaderMaterial
|
|
10
10
|
{
|
|
11
11
|
constructor(frag_shader, vert_shader, defines)
|
|
12
12
|
{
|
|
@@ -26,3 +26,5 @@ export default class BlitMaterial extends ShaderMaterial
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
|
|
30
|
+
export { BlitMaterial };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import BlitMaterial from './BlitMaterial';
|
|
2
|
-
import frag from '../shaders/bloom/bloom_compose_frag';
|
|
3
|
-
import cheap_frag from '../shaders/bloom/cheap_bloom_compose_frag';
|
|
1
|
+
import { BlitMaterial } from './BlitMaterial';
|
|
2
|
+
import { frag } from '../shaders/bloom/bloom_compose_frag';
|
|
3
|
+
import { cheap_frag } from '../shaders/bloom/cheap_bloom_compose_frag';
|
|
4
4
|
import { CustomBlending, OneFactor } from 'three';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
class BloomComposeMaterial extends BlitMaterial
|
|
7
7
|
{
|
|
8
8
|
constructor(alpha_blending)
|
|
9
9
|
{
|
|
@@ -20,3 +20,5 @@ export default class BloomComposeMaterial extends BlitMaterial
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
export { BloomComposeMaterial };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import BlitMaterial from '../materials/BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from '../materials/BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/box_blur/box_blur.frag';
|
|
3
4
|
|
|
4
5
|
import { Vector2 } from 'three';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
class BoxBlurMaterial extends BlitMaterial
|
|
7
8
|
{
|
|
8
9
|
constructor()
|
|
9
10
|
{
|
|
@@ -11,3 +12,5 @@ export default class BoxBlurMaterial extends BlitMaterial
|
|
|
11
12
|
this.uniforms._SampleDir = { value: new Vector2() };
|
|
12
13
|
}
|
|
13
14
|
}
|
|
15
|
+
|
|
16
|
+
export { BoxBlurMaterial };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import BlitMaterial from 'js/core/materials/BlitMaterial';
|
|
2
|
-
import frag from 'js/core/shaders/clear/clear_alpha';
|
|
1
|
+
import { BlitMaterial } from 'js/core/materials/BlitMaterial';
|
|
2
|
+
import { frag } from 'js/core/shaders/clear/clear_alpha';
|
|
3
3
|
import { SubtractiveBlending } from 'three';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
class ClearAlphaMaterial extends BlitMaterial
|
|
6
6
|
{
|
|
7
7
|
constructor()
|
|
8
8
|
{
|
|
@@ -11,3 +11,5 @@ export default class ClearAlphaMaterial extends BlitMaterial
|
|
|
11
11
|
this.blending = SubtractiveBlending;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
export { ClearAlphaMaterial };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import BlitMaterial from 'js/core/materials/BlitMaterial';
|
|
2
|
-
import frag from 'js/core/shaders/clear/clear_color';
|
|
1
|
+
import { BlitMaterial } from 'js/core/materials/BlitMaterial';
|
|
2
|
+
import { frag } from 'js/core/shaders/clear/clear_color';
|
|
3
3
|
import { LessEqualDepth, Color } from 'three';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
class ClearColorMaterial extends BlitMaterial
|
|
6
6
|
{
|
|
7
7
|
constructor()
|
|
8
8
|
{
|
|
@@ -29,3 +29,5 @@ export default class ClearColorMaterial extends BlitMaterial
|
|
|
29
29
|
this.uniforms._Opacity.value = value;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
export { ClearColorMaterial };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import BlitMaterial from '../materials/BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from '../materials/BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/clear/clear_depth_normal.frag';
|
|
3
4
|
|
|
4
5
|
import { Vector4 } from 'three';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
class ClearDepthNormalMaterial extends BlitMaterial
|
|
7
8
|
{
|
|
8
9
|
constructor(clear_depth, clear_normal)
|
|
9
10
|
{
|
|
@@ -11,3 +12,5 @@ export default class ClearDepthNormalMaterial extends BlitMaterial
|
|
|
11
12
|
this.uniforms._DepthNormal = { value: new Vector4(clear_depth, clear_normal.x, clear_normal.y, clear_normal.z) };
|
|
12
13
|
}
|
|
13
14
|
}
|
|
15
|
+
|
|
16
|
+
export { ClearDepthNormalMaterial };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import BlitMaterial from '../materials/BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from '../materials/BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/deferred/deferred_compose.frag';
|
|
3
4
|
import vert from '../shaders/deferred/blit_copy.vert';
|
|
4
5
|
|
|
5
6
|
import { Matrix4 } from 'three';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
class DeferredRendererComposeMaterial extends BlitMaterial
|
|
8
9
|
{
|
|
9
10
|
constructor()
|
|
10
11
|
{
|
|
@@ -30,3 +31,5 @@ export default class DeferredRendererComposeMaterial extends BlitMaterial
|
|
|
30
31
|
this.uniforms._InverseProjMatrix.value.getInverse(mat4);
|
|
31
32
|
}
|
|
32
33
|
}
|
|
34
|
+
|
|
35
|
+
export { DeferredRendererComposeMaterial };
|
|
@@ -3,7 +3,7 @@ import frag from '../shaders/depth_normals/depth_normals.frag';
|
|
|
3
3
|
|
|
4
4
|
import { ShaderMaterial } from 'three';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
class DepthNormalMaterial extends ShaderMaterial
|
|
7
7
|
{
|
|
8
8
|
constructor()
|
|
9
9
|
{
|
|
@@ -26,3 +26,5 @@ export default class DepthNormalMaterial extends ShaderMaterial
|
|
|
26
26
|
return this.uniforms._FarPlane.value;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
|
|
30
|
+
export { DepthNormalMaterial };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import BlitMaterial from '../materials/BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from '../materials/BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/depth_normals/debug_normals.frag';
|
|
3
4
|
import depth_normals_vert from '../shaders/ssao/ssao.vert';
|
|
4
5
|
|
|
5
6
|
import { Matrix4 } from 'three';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
class DisplayNormalTextureMaterial extends BlitMaterial
|
|
8
9
|
{
|
|
9
10
|
constructor()
|
|
10
11
|
{
|
|
@@ -13,3 +14,5 @@ export default class DisplayNormalTextureMaterial extends BlitMaterial
|
|
|
13
14
|
this.uniforms._InverseProjMatrix = { value: new Matrix4() };
|
|
14
15
|
}
|
|
15
16
|
}
|
|
17
|
+
|
|
18
|
+
export { DisplayNormalTextureMaterial };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import BlitMaterial from './BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from './BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import downsample_frag from '../shaders/dual_filter_blur/downsample.frag';
|
|
3
4
|
import upsample_frag from '../shaders/dual_filter_blur/upsample.frag';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
class DualFilteringBlurMaterial extends BlitMaterial
|
|
6
7
|
{
|
|
7
8
|
constructor(upsample)
|
|
8
9
|
{
|
|
9
10
|
super(upsample ? upsample_frag : downsample_frag);
|
|
10
11
|
}
|
|
11
12
|
}
|
|
13
|
+
|
|
14
|
+
export { DualFilteringBlurMaterial };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import BlitMaterial from 'js/core/materials/BlitMaterial';
|
|
2
|
-
import frag from 'js/core/shaders/anti_aliasing/fxaa_frag';
|
|
1
|
+
import { BlitMaterial } from 'js/core/materials/BlitMaterial';
|
|
2
|
+
import { frag } from 'js/core/shaders/anti_aliasing/fxaa_frag';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
class FXAAMaterial extends BlitMaterial
|
|
5
5
|
{
|
|
6
6
|
constructor(upsample)
|
|
7
7
|
{
|
|
8
8
|
super(frag);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
export { FXAAMaterial };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import BlitMaterial from './BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from './BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/gaussian_blur/gaussian_blur.frag';
|
|
4
|
+
|
|
3
5
|
import { Vector2 } from 'three';
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
class GaussianBlurMaterial extends BlitMaterial
|
|
6
8
|
{
|
|
7
9
|
constructor(kernel_radius)
|
|
8
10
|
{
|
|
@@ -26,3 +28,5 @@ export default class GaussianBlurMaterial extends BlitMaterial
|
|
|
26
28
|
this.uniforms.direction.value.set(x, y);
|
|
27
29
|
}
|
|
28
30
|
}
|
|
31
|
+
|
|
32
|
+
export { GaussianBlurMaterial };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import BlitMaterial from './BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from './BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/luminosity_high_pass/luminosity_high_pass.frag';
|
|
4
|
+
|
|
3
5
|
import { Color } from 'three';
|
|
4
|
-
|
|
6
|
+
class LuminosityHighPassMaterial extends BlitMaterial
|
|
5
7
|
{
|
|
6
8
|
constructor(kernel_radius)
|
|
7
9
|
{
|
|
@@ -13,3 +15,5 @@ export default class LuminosityHighPassMaterial extends BlitMaterial
|
|
|
13
15
|
this.uniforms.defaultOpacity = { value: 0.0 };
|
|
14
16
|
}
|
|
15
17
|
}
|
|
18
|
+
|
|
19
|
+
export { LuminosityHighPassMaterial };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import BlitMaterial from '../materials/BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from '../materials/BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/median_filter/median_filter.frag';
|
|
3
4
|
|
|
4
5
|
import { Vector2 } from 'three';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
class MedianFilterMaterial extends BlitMaterial
|
|
7
8
|
{
|
|
8
9
|
constructor()
|
|
9
10
|
{
|
|
@@ -40,3 +41,5 @@ export default class MedianFilterMaterial extends BlitMaterial
|
|
|
40
41
|
return new Vector2(1, 1);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
44
|
+
|
|
45
|
+
export { MedianFilterMaterial };
|
|
@@ -3,7 +3,7 @@ import vert from '../shaders/normal/normal.vert';
|
|
|
3
3
|
|
|
4
4
|
import { ShaderMaterial } from 'three';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
class NormalMaterial extends ShaderMaterial
|
|
7
7
|
{
|
|
8
8
|
constructor()
|
|
9
9
|
{
|
|
@@ -15,3 +15,5 @@ export default class NormalMaterial extends ShaderMaterial
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
export { NormalMaterial };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import BaseShaderMaterial from './BaseShaderMaterial';
|
|
1
|
+
import { BaseShaderMaterial } from './BaseShaderMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/sdf_text/sdf_screen_text.frag';
|
|
3
4
|
import vert from '../shaders/sdf_text/sdf_screen_text.vert';
|
|
4
5
|
|
|
5
6
|
import { Vector2, DoubleSide, LinearFilter } from 'three';
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
class SDFScreenTextMaterial extends BaseShaderMaterial
|
|
8
9
|
{
|
|
9
10
|
constructor(texture)
|
|
10
11
|
{
|
|
@@ -29,3 +30,5 @@ export default class SDFScreenTextMaterial extends BaseShaderMaterial
|
|
|
29
30
|
this.uniforms._AtlasSize.value.copy(size);
|
|
30
31
|
}
|
|
31
32
|
}
|
|
33
|
+
|
|
34
|
+
export { SDFScreenTextMaterial };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import BaseShaderMaterial from './BaseShaderMaterial';
|
|
1
|
+
import { BaseShaderMaterial } from './BaseShaderMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/sdf_text/sdf_text.frag';
|
|
3
4
|
import vert from '../shaders/sdf_text/sdf_text.vert';
|
|
4
5
|
|
|
5
6
|
import { Vector2, DoubleSide, LinearFilter } from 'three';
|
|
6
|
-
import OMath from '../utilities/OMath';
|
|
7
|
+
import { OMath } from '../utilities/OMath';
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
class SDFTextMaterial extends BaseShaderMaterial
|
|
9
10
|
{
|
|
10
11
|
constructor(texture)
|
|
11
12
|
{
|
|
@@ -36,3 +37,5 @@ export default class SDFTextMaterial extends BaseShaderMaterial
|
|
|
36
37
|
this.uniforms._Boldness.value = OMath.lerp(0.5, 0.2, value);
|
|
37
38
|
}
|
|
38
39
|
}
|
|
40
|
+
|
|
41
|
+
export { SDFTextMaterial };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import BlitMaterial from '../materials/BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from '../materials/BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/ssao/ssao_compose.frag';
|
|
3
4
|
|
|
4
|
-
|
|
5
|
+
class SSAOComposeMaterial extends BlitMaterial
|
|
5
6
|
{
|
|
6
7
|
constructor()
|
|
7
8
|
{
|
|
@@ -9,3 +10,5 @@ export default class SSAOComposeMaterial extends BlitMaterial
|
|
|
9
10
|
this.uniforms._AO = { value: undefined };
|
|
10
11
|
}
|
|
11
12
|
}
|
|
13
|
+
|
|
14
|
+
export { SSAOComposeMaterial };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import BlitMaterial from '../materials/BlitMaterial';
|
|
1
|
+
import { BlitMaterial } from '../materials/BlitMaterial';
|
|
2
|
+
|
|
2
3
|
import frag from '../shaders/ssao/ssao.frag';
|
|
3
4
|
import vert from '../shaders/ssao/ssao.vert';
|
|
4
5
|
|
|
@@ -7,8 +8,9 @@ import { Vector3 } from 'three';
|
|
|
7
8
|
import { DataTexture } from 'three';
|
|
8
9
|
import { RGBFormat } from 'three';
|
|
9
10
|
import { RepeatWrapping } from 'three';
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
|
|
12
|
+
import { OMath } from '../utilities/OMath';
|
|
13
|
+
class SSAOMaterial extends BlitMaterial
|
|
12
14
|
{
|
|
13
15
|
constructor()
|
|
14
16
|
{
|
|
@@ -63,3 +65,5 @@ export default class SSAOMaterial extends BlitMaterial
|
|
|
63
65
|
return rotation_texture;
|
|
64
66
|
}
|
|
65
67
|
}
|
|
68
|
+
|
|
69
|
+
export { SSAOMaterial };
|