@tresjs/cientos 5.1.1 → 5.1.2
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/dist/trescientos.d.ts +1867 -1784
- package/dist/trescientos.js +130 -26
- package/package.json +4 -4
package/dist/trescientos.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/cientos
|
|
3
|
-
* version: v5.1.
|
|
3
|
+
* version: v5.1.2
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Collection of useful helpers and fully functional, ready-made abstractions for Tres
|
|
6
6
|
* author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
|
|
@@ -10,10 +10,9 @@ import { buildGraph, extend, logError, logWarning, normalizeColor, normalizeVect
|
|
|
10
10
|
import * as THREE from "three";
|
|
11
11
|
import { AdditiveBlending, AlwaysStencilFunc, AnimationMixer, Audio, AudioListener, AudioLoader, BackSide, Box2, Box3, BoxGeometry, BufferAttribute, BufferGeometry, Camera, CatmullRomCurve3, ClampToEdgeWrapping, Clock, Color, CubeCamera, CubeReflectionMapping, CubeTextureLoader, CubicBezierCurve3, DataTexture, DefaultLoadingManager, DepthTexture, DirectionalLight, DoubleSide, EdgesGeometry, EqualStencilFunc, EquirectangularReflectionMapping, Euler, FloatType, FramebufferTexture, FrontSide, Group, HalfFloatType, IcosahedronGeometry, InstancedMesh, InterleavedBuffer, InterleavedBufferAttribute, KeepStencilOp, LOD, LinearFilter, MOUSE, MathUtils, Matrix4, Mesh, MeshBasicMaterial, MeshDepthMaterial, MeshLambertMaterial, MeshStandardMaterial, NearestFilter, NoBlending, NotEqualStencilFunc, Object3D, OrthographicCamera, PerspectiveCamera, Plane, PlaneGeometry, Points, PointsMaterial, QuadraticBezierCurve3, Quaternion, REVISION, RGBAFormat, RawShaderMaterial, Raycaster, RepeatWrapping, ReplaceStencilOp, Scene, ShaderChunk, ShaderMaterial, ShapeGeometry, SkinnedMesh, Sphere, Spherical, TOUCH, TangentSpaceNormalMap, Texture, TextureLoader, UVMapping, Uniform, UniformsUtils, UnsignedByteType, Vector2, Vector3, Vector4, VideoTexture, WebGLCubeRenderTarget, WebGLRenderTarget, WebGLRenderer } from "three";
|
|
12
12
|
import { tryOnScopeDispose, useDebounceFn, useElementSize, useEventListener, useMagicKeys, useMouse, useScroll, useWindowScroll, useWindowSize, watchThrottled, whenever } from "@vueuse/core";
|
|
13
|
-
import { DRACOLoader, FBXLoader, FontLoader, GLTFExporter, GLTFLoader, HorizontalBlurShader, Line2, LineGeometry, LineMaterial, MapControls, MarchingCubes, MeshSurfaceSampler, OrbitControls, PointerLockControls, PositionalAudioHelper, RGBELoader, Reflector, RoundedBoxGeometry, SVGLoader, Sky, TextGeometry, TransformControls, VerticalBlurShader, Water, toCreasedNormals } from "three-stdlib";
|
|
13
|
+
import { DRACOLoader, FBXLoader, FontLoader, GLTFExporter, GLTFLoader, HorizontalBlurShader, Line2, LineGeometry, LineMaterial, MapControls, MarchingCubes, MeshSurfaceSampler, OrbitControls, PointerLockControls, PositionalAudioHelper, RGBELoader, Reflector, RoundedBoxGeometry, SVGLoader, SimplexNoise, Sky, TextGeometry, TransformControls, VerticalBlurShader, Water, toCreasedNormals } from "three-stdlib";
|
|
14
14
|
import BaseCameraControls, { default as CameraControls } from "camera-controls";
|
|
15
15
|
import CustomShaderMaterial from "three-custom-shader-material/vanilla";
|
|
16
|
-
import { WebGPURenderer } from "three/webgpu";
|
|
17
16
|
import StatsImpl from "stats.js";
|
|
18
17
|
import StatsGlImpl from "stats-gl";
|
|
19
18
|
|
|
@@ -916,7 +915,7 @@ function shaderMaterial(uniforms, vertexShader, fragmentShader, onInit) {
|
|
|
916
915
|
* NOTE: Source:
|
|
917
916
|
* https://threejs.org/docs/?q=material#api/en/materials/Material.transparent
|
|
918
917
|
*/
|
|
919
|
-
const
|
|
918
|
+
const ImageMaterialImpl = /* @__PURE__ */ shaderMaterial({
|
|
920
919
|
color: /* @__PURE__ */ new Color("white"),
|
|
921
920
|
scale: /* @__PURE__ */ new Vector2(1, 1),
|
|
922
921
|
imageBounds: /* @__PURE__ */ new Vector2(1, 1),
|
|
@@ -954,14 +953,14 @@ const imageMaterialImpl = shaderMaterial({
|
|
|
954
953
|
vec2 aspect(vec2 size) {
|
|
955
954
|
return size / min(size.x, size.y);
|
|
956
955
|
}
|
|
957
|
-
|
|
956
|
+
|
|
958
957
|
const float PI = 3.14159265;
|
|
959
|
-
|
|
958
|
+
|
|
960
959
|
// from https://iquilezles.org/articles/distfunctions
|
|
961
960
|
float udRoundBox( vec2 p, vec2 b, float r ) {
|
|
962
961
|
return length(max(abs(p)-b+r,0.0))-r;
|
|
963
962
|
}
|
|
964
|
-
|
|
963
|
+
|
|
965
964
|
void main() {
|
|
966
965
|
vec2 s = aspect(scale);
|
|
967
966
|
vec2 i = aspect(imageBounds);
|
|
@@ -971,25 +970,24 @@ const imageMaterialImpl = shaderMaterial({
|
|
|
971
970
|
vec2 offset = (rs < ri ? vec2((new.x - s.x) / 2.0, 0.0) : vec2(0.0, (new.y - s.y) / 2.0)) / new;
|
|
972
971
|
vec2 uv = vUv * s / new + offset;
|
|
973
972
|
vec2 zUv = (uv - vec2(0.5, 0.5)) / zoom + vec2(0.5, 0.5);
|
|
974
|
-
|
|
973
|
+
|
|
975
974
|
vec2 res = vec2(scale * resolution);
|
|
976
975
|
vec2 halfRes = 0.5 * res;
|
|
977
|
-
float b = udRoundBox(vUv.xy * res - halfRes, halfRes, resolution * radius);
|
|
976
|
+
float b = udRoundBox(vUv.xy * res - halfRes, halfRes, resolution * radius);
|
|
978
977
|
vec3 a = mix(vec3(1.0,0.0,0.0), vec3(0.0,0.0,0.0), smoothstep(0.0, 1.0, b));
|
|
979
978
|
gl_FragColor = toGrayscale(texture2D(map, zUv) * vec4(color, opacity * a), grayscale);
|
|
980
|
-
|
|
979
|
+
|
|
981
980
|
#include <tonemapping_fragment>
|
|
982
981
|
#include <colorspace_fragment>
|
|
983
982
|
}
|
|
984
983
|
`);
|
|
985
|
-
var ImageMaterialImpl_default = imageMaterialImpl;
|
|
986
984
|
|
|
987
985
|
//#endregion
|
|
988
986
|
//#region src/core/abstractions/Image/ImageMaterial.vue?vue&type=script&setup=true&lang.ts
|
|
989
987
|
var ImageMaterial_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
990
988
|
__name: "ImageMaterial",
|
|
991
989
|
setup(__props, { expose: __expose }) {
|
|
992
|
-
extend({ ImageMaterial:
|
|
990
|
+
extend({ ImageMaterial: ImageMaterialImpl });
|
|
993
991
|
const materialRef = shallowRef();
|
|
994
992
|
__expose({ instance: materialRef });
|
|
995
993
|
return (_ctx, _cache) => {
|
|
@@ -1085,12 +1083,10 @@ var component_vue_vue_type_script_setup_true_lang_default$16 = /* @__PURE__ */ d
|
|
|
1085
1083
|
const planeBounds = computed(() => Array.isArray(props.scale) ? [props.scale[0], props.scale[1]] : [props.scale, props.scale]);
|
|
1086
1084
|
const imageBounds = computed(() => [texture$1.value?.image?.width ?? 0, texture$1.value?.image?.height ?? 0]);
|
|
1087
1085
|
const resolution = computed(() => Math.max(size.width.value, size.height.value));
|
|
1086
|
+
const { state, isLoading } = useTexture(props.url);
|
|
1088
1087
|
watchEffect(() => {
|
|
1089
1088
|
if (props.texture) texture$1.value = props.texture;
|
|
1090
|
-
|
|
1091
|
-
const { state: t } = useTexture(props.url);
|
|
1092
|
-
texture$1.value = t.value;
|
|
1093
|
-
}
|
|
1089
|
+
if (!isLoading.value) texture$1.value = state.value;
|
|
1094
1090
|
});
|
|
1095
1091
|
const scale = computed(() => Array.isArray(props.scale) ? [...props.scale, 1] : props.scale);
|
|
1096
1092
|
__expose({ instance: imageRef });
|
|
@@ -2221,7 +2217,7 @@ var MouseParallax_default = MouseParallax_vue_vue_type_script_setup_true_lang_de
|
|
|
2221
2217
|
|
|
2222
2218
|
//#endregion
|
|
2223
2219
|
//#region src/core/abstractions/Outline/OutlineMaterialImpl.ts
|
|
2224
|
-
const OutlineMaterialImpl = shaderMaterial({
|
|
2220
|
+
const OutlineMaterialImpl = /* @__PURE__ */ shaderMaterial({
|
|
2225
2221
|
screenspace: false,
|
|
2226
2222
|
color: new Color("black"),
|
|
2227
2223
|
opacity: 1,
|
|
@@ -2253,7 +2249,7 @@ const OutlineMaterialImpl = shaderMaterial({
|
|
|
2253
2249
|
#endif
|
|
2254
2250
|
if (screenspace) {
|
|
2255
2251
|
vec3 newPosition = tPosition.xyz + tNormal.xyz * thickness;
|
|
2256
|
-
gl_Position = projectionMatrix * modelViewMatrix * vec4(newPosition, 1.0);
|
|
2252
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(newPosition, 1.0);
|
|
2257
2253
|
} else {
|
|
2258
2254
|
vec4 clipPosition = projectionMatrix * modelViewMatrix * tPosition;
|
|
2259
2255
|
vec4 clipNormal = projectionMatrix * modelViewMatrix * tNormal;
|
|
@@ -2268,7 +2264,6 @@ const OutlineMaterialImpl = shaderMaterial({
|
|
|
2268
2264
|
#include <tonemapping_fragment>
|
|
2269
2265
|
#include <colorspace_fragment>
|
|
2270
2266
|
}`);
|
|
2271
|
-
var OutlineMaterialImpl_default = OutlineMaterialImpl;
|
|
2272
2267
|
|
|
2273
2268
|
//#endregion
|
|
2274
2269
|
//#region src/core/abstractions/Outline/component.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -2330,7 +2325,7 @@ var component_vue_vue_type_script_setup_true_lang_default$13 = /* @__PURE__ */ d
|
|
|
2330
2325
|
const props = __props;
|
|
2331
2326
|
const groupRef = shallowRef();
|
|
2332
2327
|
__expose({ instance: groupRef });
|
|
2333
|
-
const material = new
|
|
2328
|
+
const material = new OutlineMaterialImpl({ ...props });
|
|
2334
2329
|
const contextSize = new Vector2(1, 1);
|
|
2335
2330
|
let oldAngle = 0;
|
|
2336
2331
|
let oldGeometry = null;
|
|
@@ -2623,6 +2618,7 @@ var Reflector_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
|
|
|
2623
2618
|
const reflectorRef = shallowRef();
|
|
2624
2619
|
extend$1({ Reflector });
|
|
2625
2620
|
const { color, textureWidth, textureHeight, clipBias, multisample, shader } = toRefs(props);
|
|
2621
|
+
const colorValue = computed(() => new Color(color.value));
|
|
2626
2622
|
watch(props, () => {
|
|
2627
2623
|
invalidate();
|
|
2628
2624
|
});
|
|
@@ -2638,7 +2634,7 @@ var Reflector_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
|
|
|
2638
2634
|
multisample: unref(multisample),
|
|
2639
2635
|
shader: unref(shader)
|
|
2640
2636
|
}],
|
|
2641
|
-
"material-uniforms-color-value":
|
|
2637
|
+
"material-uniforms-color-value": colorValue.value
|
|
2642
2638
|
}, [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createElementVNode("TresPlaneGeometry", { args: [5, 5] }, null, -1))])], 8, _hoisted_1$50);
|
|
2643
2639
|
};
|
|
2644
2640
|
}
|
|
@@ -5504,6 +5500,7 @@ var index_vue_vue_type_script_setup_true_lang_default$5 = /* @__PURE__ */ define
|
|
|
5504
5500
|
root: MeshHolographicMaterialClass,
|
|
5505
5501
|
constructor: HolographicMaterialParameters_default
|
|
5506
5502
|
});
|
|
5503
|
+
const colorValue = computed(() => new Color(props.hologramColor));
|
|
5507
5504
|
const { onBeforeRender } = useLoop();
|
|
5508
5505
|
onBeforeRender(() => {
|
|
5509
5506
|
MeshHolographicMaterialClass.value?.update();
|
|
@@ -5518,7 +5515,7 @@ var index_vue_vue_type_script_setup_true_lang_default$5 = /* @__PURE__ */ define
|
|
|
5518
5515
|
"uniforms-hologramBrightness-value": props.hologramBrightness,
|
|
5519
5516
|
"uniforms-scanlineSize-value": props.scanlineSize,
|
|
5520
5517
|
"uniforms-signalSpeed-value": props.signalSpeed,
|
|
5521
|
-
"uniforms-hologramColor-value":
|
|
5518
|
+
"uniforms-hologramColor-value": colorValue.value,
|
|
5522
5519
|
"uniforms-hologramOpacity-value": props.hologramOpacity,
|
|
5523
5520
|
"uniforms-blinkFresnelOnly-value": props.blinkFresnelOnly,
|
|
5524
5521
|
enableAdditive: props.enableAdditive,
|
|
@@ -6429,7 +6426,7 @@ var index_vue_vue_type_script_setup_true_lang_default$2 = /* @__PURE__ */ define
|
|
|
6429
6426
|
onBeforeRender(({ renderer, scene, camera }) => {
|
|
6430
6427
|
const parent = materialRef.value?.__tres?.parent;
|
|
6431
6428
|
if (!parent) return;
|
|
6432
|
-
if (renderer
|
|
6429
|
+
if ("isWebGPURenderer" in renderer && renderer.isWebGPURenderer === true) {
|
|
6433
6430
|
console.warn("MeshReflectionMaterial: WebGPURenderer is not supported yet");
|
|
6434
6431
|
return;
|
|
6435
6432
|
}
|
|
@@ -10726,6 +10723,111 @@ var Smoke_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
10726
10723
|
//#region src/core/staging/Smoke.vue
|
|
10727
10724
|
var Smoke_default = Smoke_vue_vue_type_script_setup_true_lang_default;
|
|
10728
10725
|
|
|
10726
|
+
//#endregion
|
|
10727
|
+
//#region src/core/staging/CameraShake.vue?vue&type=script&setup=true&lang.ts
|
|
10728
|
+
var CameraShake_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
10729
|
+
__name: "CameraShake",
|
|
10730
|
+
props: {
|
|
10731
|
+
intensity: {
|
|
10732
|
+
type: Number,
|
|
10733
|
+
required: false,
|
|
10734
|
+
default: 1
|
|
10735
|
+
},
|
|
10736
|
+
decay: {
|
|
10737
|
+
type: Boolean,
|
|
10738
|
+
required: false,
|
|
10739
|
+
default: false
|
|
10740
|
+
},
|
|
10741
|
+
decayRate: {
|
|
10742
|
+
type: Number,
|
|
10743
|
+
required: false,
|
|
10744
|
+
default: .65
|
|
10745
|
+
},
|
|
10746
|
+
maxYaw: {
|
|
10747
|
+
type: Number,
|
|
10748
|
+
required: false,
|
|
10749
|
+
default: .01
|
|
10750
|
+
},
|
|
10751
|
+
maxPitch: {
|
|
10752
|
+
type: Number,
|
|
10753
|
+
required: false,
|
|
10754
|
+
default: .01
|
|
10755
|
+
},
|
|
10756
|
+
maxRoll: {
|
|
10757
|
+
type: Number,
|
|
10758
|
+
required: false,
|
|
10759
|
+
default: .01
|
|
10760
|
+
},
|
|
10761
|
+
yawFrequency: {
|
|
10762
|
+
type: Number,
|
|
10763
|
+
required: false,
|
|
10764
|
+
default: .1
|
|
10765
|
+
},
|
|
10766
|
+
pitchFrequency: {
|
|
10767
|
+
type: Number,
|
|
10768
|
+
required: false,
|
|
10769
|
+
default: .1
|
|
10770
|
+
},
|
|
10771
|
+
rollFrequency: {
|
|
10772
|
+
type: Number,
|
|
10773
|
+
required: false,
|
|
10774
|
+
default: .1
|
|
10775
|
+
}
|
|
10776
|
+
},
|
|
10777
|
+
setup(__props) {
|
|
10778
|
+
const props = __props;
|
|
10779
|
+
const { intensity, decay, decayRate, maxYaw, maxPitch, maxRoll, yawFrequency, pitchFrequency, rollFrequency } = toRefs(props);
|
|
10780
|
+
const { camera, controls } = useTresContext();
|
|
10781
|
+
let cleanUpFn = null;
|
|
10782
|
+
const currentIntensity = shallowRef(props.intensity);
|
|
10783
|
+
const initialRotation = shallowRef(camera.activeCamera.value?.rotation.clone());
|
|
10784
|
+
const yawNoise = new SimplexNoise();
|
|
10785
|
+
const pitchNoise = new SimplexNoise();
|
|
10786
|
+
const rollNoise = new SimplexNoise();
|
|
10787
|
+
function constrainIntensity() {
|
|
10788
|
+
if (currentIntensity.value < 0) currentIntensity.value = 0;
|
|
10789
|
+
if (currentIntensity.value > 1) currentIntensity.value = 1;
|
|
10790
|
+
}
|
|
10791
|
+
watch(intensity, (newVal) => {
|
|
10792
|
+
currentIntensity.value = newVal;
|
|
10793
|
+
constrainIntensity();
|
|
10794
|
+
});
|
|
10795
|
+
function updateInitialRotation() {
|
|
10796
|
+
if (camera.activeCamera.value) initialRotation.value = camera.activeCamera.value.rotation.clone();
|
|
10797
|
+
}
|
|
10798
|
+
watch([camera.activeCamera, controls], () => {
|
|
10799
|
+
cleanUpFn?.();
|
|
10800
|
+
if (controls.value) cleanUpFn = useEventListener(controls.value, "change", updateInitialRotation);
|
|
10801
|
+
updateInitialRotation();
|
|
10802
|
+
});
|
|
10803
|
+
function setIntensity(v) {
|
|
10804
|
+
currentIntensity.value = Math.min(1, Math.max(0, v));
|
|
10805
|
+
}
|
|
10806
|
+
const { onBeforeRender } = useLoop();
|
|
10807
|
+
onBeforeRender(({ elapsed, delta }) => {
|
|
10808
|
+
const cam = camera.activeCamera.value;
|
|
10809
|
+
if (!cam) return;
|
|
10810
|
+
if (!decay.value && currentIntensity.value < intensity.value) setIntensity(currentIntensity.value + decayRate.value * delta);
|
|
10811
|
+
const shakeFactor = currentIntensity.value * currentIntensity.value;
|
|
10812
|
+
const yaw = maxYaw.value * shakeFactor * yawNoise.noise(elapsed * yawFrequency.value, 1);
|
|
10813
|
+
const pitch = maxPitch.value * shakeFactor * pitchNoise.noise(elapsed * pitchFrequency.value, 1);
|
|
10814
|
+
const roll = maxRoll.value * shakeFactor * rollNoise.noise(elapsed * rollFrequency.value, 1);
|
|
10815
|
+
cam.rotation.set(initialRotation.value.x + pitch, initialRotation.value.y + yaw, initialRotation.value.z + roll);
|
|
10816
|
+
if (decay.value) setIntensity(currentIntensity.value - decayRate.value * delta);
|
|
10817
|
+
});
|
|
10818
|
+
onUnmounted(() => {
|
|
10819
|
+
cleanUpFn?.();
|
|
10820
|
+
});
|
|
10821
|
+
return (_ctx, _cache) => {
|
|
10822
|
+
return renderSlot(_ctx.$slots, "default");
|
|
10823
|
+
};
|
|
10824
|
+
}
|
|
10825
|
+
});
|
|
10826
|
+
|
|
10827
|
+
//#endregion
|
|
10828
|
+
//#region src/core/staging/CameraShake.vue
|
|
10829
|
+
var CameraShake_default = CameraShake_vue_vue_type_script_setup_true_lang_default;
|
|
10830
|
+
|
|
10729
10831
|
//#endregion
|
|
10730
10832
|
//#region src/core/staging/SoftShadows.vue?vue&type=script&setup=true&lang.ts
|
|
10731
10833
|
const PCSSGetShadow = `
|
|
@@ -11520,7 +11622,8 @@ const _hoisted_3$1 = [
|
|
|
11520
11622
|
"castShadow",
|
|
11521
11623
|
"shadow-bias",
|
|
11522
11624
|
"shadow-normalBias",
|
|
11523
|
-
"shadow-mapSize"
|
|
11625
|
+
"shadow-mapSize-x",
|
|
11626
|
+
"shadow-mapSize-y"
|
|
11524
11627
|
];
|
|
11525
11628
|
const _hoisted_4$1 = ["position", "intensity"];
|
|
11526
11629
|
const _hoisted_5 = ["position"];
|
|
@@ -11688,7 +11791,8 @@ var Stage_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
11688
11791
|
castShadow: !!__props.shadows,
|
|
11689
11792
|
"shadow-bias": __props.shadows?.bias ?? 0,
|
|
11690
11793
|
"shadow-normalBias": __props.shadows?.normalBias ?? 0,
|
|
11691
|
-
"shadow-mapSize": __props.shadows?.size ?? 1024
|
|
11794
|
+
"shadow-mapSize-x": __props.shadows?.size ?? 1024,
|
|
11795
|
+
"shadow-mapSize-y": __props.shadows?.size ?? 1024
|
|
11692
11796
|
}, null, 8, _hoisted_3$1),
|
|
11693
11797
|
createElementVNode("TresPointLight", {
|
|
11694
11798
|
position: lightingFillComputed.value,
|
|
@@ -12201,4 +12305,4 @@ function extractBindingPosition(binding) {
|
|
|
12201
12305
|
}
|
|
12202
12306
|
|
|
12203
12307
|
//#endregion
|
|
12204
|
-
export { component_default as AccumulativeShadows, Align_default as Align, component_default$1 as AnimatedSprite, Backdrop_default as Backdrop, BakeShadows, BaseCameraControls, Billboard_default as Billboard, component_default$2 as Bounds, Box_default as Box, CameraControls_default as CameraControls, CatmullRomCurve3_default as CatmullRomCurve3, Circle_default as Circle, CircleShadow_default as CircleShadow, Cone_default as Cone, ContactShadows_default as ContactShadows, component_default$3 as CubeCamera, CubicBezierLine_default as CubicBezierLine, customShaderMaterial_default as CustomShaderMaterial, Cylinder_default as Cylinder, Dodecahedron_default as Dodecahedron, Edges_default as Edges, component_default$4 as Environment, component_default$5 as FBXModel, component_default$6 as Fbo, Fit_default as Fit, component_default$7 as GLTFModel, GlobalAudio, GradientTexture_default as GradientTexture, Grid_default as Grid, component_default$8 as Helper, holographicMaterial_default as HolographicMaterial, HTML_default as Html, Icosahedron_default as Icosahedron, component_default$9 as Image, KeyboardControls_default as KeyboardControls, LOD_default as LOD, component_default$10 as Lensflare, Levioso_default as Levioso, lightformer_default as Lightformer, Line2_default as Line2, MapControls_default as MapControls, MarchingCube_default as MarchingCube, MarchingCubes_default as MarchingCubes, MarchingPlane_default as MarchingPlane, component_default$11 as Mask, meshDiscardMaterial_default as MeshDiscardMaterial, meshGlassMaterial_default as MeshGlassMaterial, meshReflectionMaterial_default as MeshReflectionMaterial, meshWobbleMaterial_default as MeshWobbleMaterial, MouseParallax_default as MouseParallax, Ocean_default as Ocean, Octahedron_default as Octahedron, OrbitControls_default as OrbitControls, component_default$12 as Outline, Plane_default as Plane, component_default$13 as PointMaterial, PointerLockControls_default as PointerLockControls, PositionalAudio_default as PositionalAudio, Precipitation_default as Precipitation, QuadraticBezierLine_default as QuadraticBezierLine, component_default$14 as RandomizedLights, Reflector_default as Reflector, Ring_default as Ring, RoundedBox_default as RoundedBox, component_default$15 as Sampler, ScreenQuad_default as ScreenQuad, ScreenSizer_default as ScreenSizer, ScreenSpace_default as ScreenSpace, ScrollControls_default as ScrollControls, Sky_default as Sky, Smoke_default as Smoke, SoftShadows_default as SoftShadows, component_default$16 as Sparkles, Sphere_default as Sphere, Stage_default as Stage, Stars_default as Stars, Stats, StatsGl, Superformula_default as Superformula, Tetrahedron_default as Tetrahedron, Text3D_default as Text3D, Torus_default as Torus, TorusKnot_default as TorusKnot, TransformControls_default as TransformControls, Tube_default as Tube, component_default$17 as UseSVG, component_default$18 as UseTexture, extractBindingPosition, hasSetter, pick, useAnimations, useEnvironment, useFBO, useFBX, useGLTF, useGLTFExporter, useIntersect, useMask, useProgress, useSVG, useSurfaceSampler, useTexture, useTextures, useVideoTexture };
|
|
12308
|
+
export { component_default as AccumulativeShadows, Align_default as Align, component_default$1 as AnimatedSprite, Backdrop_default as Backdrop, BakeShadows, BaseCameraControls, Billboard_default as Billboard, component_default$2 as Bounds, Box_default as Box, CameraControls_default as CameraControls, CameraShake_default as CameraShake, CatmullRomCurve3_default as CatmullRomCurve3, Circle_default as Circle, CircleShadow_default as CircleShadow, Cone_default as Cone, ContactShadows_default as ContactShadows, component_default$3 as CubeCamera, CubicBezierLine_default as CubicBezierLine, customShaderMaterial_default as CustomShaderMaterial, Cylinder_default as Cylinder, Dodecahedron_default as Dodecahedron, Edges_default as Edges, component_default$4 as Environment, component_default$5 as FBXModel, component_default$6 as Fbo, Fit_default as Fit, component_default$7 as GLTFModel, GlobalAudio, GradientTexture_default as GradientTexture, Grid_default as Grid, component_default$8 as Helper, holographicMaterial_default as HolographicMaterial, HTML_default as Html, Icosahedron_default as Icosahedron, component_default$9 as Image, KeyboardControls_default as KeyboardControls, LOD_default as LOD, component_default$10 as Lensflare, Levioso_default as Levioso, lightformer_default as Lightformer, Line2_default as Line2, MapControls_default as MapControls, MarchingCube_default as MarchingCube, MarchingCubes_default as MarchingCubes, MarchingPlane_default as MarchingPlane, component_default$11 as Mask, meshDiscardMaterial_default as MeshDiscardMaterial, meshGlassMaterial_default as MeshGlassMaterial, meshReflectionMaterial_default as MeshReflectionMaterial, meshWobbleMaterial_default as MeshWobbleMaterial, MouseParallax_default as MouseParallax, Ocean_default as Ocean, Octahedron_default as Octahedron, OrbitControls_default as OrbitControls, component_default$12 as Outline, Plane_default as Plane, component_default$13 as PointMaterial, PointerLockControls_default as PointerLockControls, PositionalAudio_default as PositionalAudio, Precipitation_default as Precipitation, QuadraticBezierLine_default as QuadraticBezierLine, component_default$14 as RandomizedLights, Reflector_default as Reflector, Ring_default as Ring, RoundedBox_default as RoundedBox, component_default$15 as Sampler, ScreenQuad_default as ScreenQuad, ScreenSizer_default as ScreenSizer, ScreenSpace_default as ScreenSpace, ScrollControls_default as ScrollControls, Sky_default as Sky, Smoke_default as Smoke, SoftShadows_default as SoftShadows, component_default$16 as Sparkles, Sphere_default as Sphere, Stage_default as Stage, Stars_default as Stars, Stats, StatsGl, Superformula_default as Superformula, Tetrahedron_default as Tetrahedron, Text3D_default as Text3D, Torus_default as Torus, TorusKnot_default as TorusKnot, TransformControls_default as TransformControls, Tube_default as Tube, component_default$17 as UseSVG, component_default$18 as UseTexture, extractBindingPosition, hasSetter, pick, useAnimations, useEnvironment, useFBO, useFBX, useGLTF, useGLTFExporter, useIntersect, useMask, useProgress, useSVG, useSurfaceSampler, useTexture, useTextures, useVideoTexture };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/cientos",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.1.
|
|
4
|
+
"version": "5.1.2",
|
|
5
5
|
"description": "Collection of useful helpers and fully functional, ready-made abstractions for Tres",
|
|
6
6
|
"author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@tresjs/core": "5.
|
|
42
|
+
"@tresjs/core": "5.2.0",
|
|
43
43
|
"three": ">=0.133",
|
|
44
44
|
"vue": ">=3.5.17"
|
|
45
45
|
},
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"vite-plugin-glsl": "^1.5.1",
|
|
74
74
|
"vite-svg-loader": "^5.1.0",
|
|
75
75
|
"vue-tsc": "^3.1.1",
|
|
76
|
-
"@tresjs/
|
|
77
|
-
"@tresjs/
|
|
76
|
+
"@tresjs/eslint-config": "1.5.1",
|
|
77
|
+
"@tresjs/core": "5.2.0"
|
|
78
78
|
},
|
|
79
79
|
"nx": {
|
|
80
80
|
"implicitDependencies": [
|