@woosh/meep-engine 2.101.0 → 2.103.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/meep.cjs +149 -127
- package/build/meep.min.js +1 -1
- package/build/meep.module.js +149 -127
- package/package.json +1 -1
- package/src/core/__module.d.ts +4 -0
- package/src/core/__module.js +4 -0
- package/src/core/geom/2d/circle/Circle.d.ts +0 -8
- package/src/core/geom/2d/circle/Circle.d.ts.map +1 -1
- package/src/core/geom/2d/circle/Circle.js +85 -85
- package/src/core/geom/3d/cone/computeConePlaneSide.js +1 -1
- package/src/core/geom/3d/mat4/{allocate_transform_m4.d.ts → allocate_m4.d.ts} +2 -2
- package/src/core/geom/3d/mat4/allocate_m4.d.ts.map +1 -0
- package/src/core/geom/3d/mat4/{allocate_transform_m4.js → allocate_m4.js} +1 -1
- package/src/core/geom/ConicRay.d.ts +3 -1
- package/src/core/geom/ConicRay.d.ts.map +1 -1
- package/src/core/geom/ConicRay.js +7 -5
- package/src/core/geom/Vector1.d.ts.map +1 -1
- package/src/core/geom/Vector1.js +3 -0
- package/src/core/geom/Vector2.d.ts.map +1 -1
- package/src/core/geom/Vector2.js +6 -3
- package/src/core/geom/Vector3.js +1 -1
- package/src/core/geom/Vector4.d.ts.map +1 -1
- package/src/core/geom/Vector4.js +13 -92
- package/src/core/geom/vec3/v3_angle_cos_between.spec.d.ts +2 -0
- package/src/core/geom/vec3/v3_angle_cos_between.spec.d.ts.map +1 -0
- package/src/core/geom/vec3/v3_angle_cos_between.spec.js +124 -0
- package/src/core/geom/vec3/v3_distance_above_plane.d.ts +13 -4
- package/src/core/geom/vec3/v3_distance_sqr.d.ts +12 -1
- package/src/core/geom/vec3/v3_length.d.ts +9 -1
- package/src/core/geom/vec4/v4_distance_sqr.d.ts +14 -0
- package/src/core/geom/vec4/v4_distance_sqr.d.ts.map +1 -0
- package/src/core/geom/vec4/v4_distance_sqr.js +20 -0
- package/src/core/geom/vec4/v4_dot.d.ts +14 -0
- package/src/core/geom/vec4/v4_dot.d.ts.map +1 -0
- package/src/core/geom/vec4/v4_dot.js +19 -0
- package/src/core/geom/vec4/v4_length_sqr.d.ts +10 -0
- package/src/core/geom/vec4/v4_length_sqr.d.ts.map +1 -0
- package/src/core/geom/vec4/v4_length_sqr.js +11 -0
- package/src/core/geom/vec4/v4_multiply_mat4.d.ts +8 -0
- package/src/core/geom/vec4/v4_multiply_mat4.d.ts.map +1 -0
- package/src/core/geom/vec4/v4_multiply_mat4.js +42 -0
- package/src/core/lang/reactive/compileReactiveExpression.d.ts.map +1 -1
- package/src/core/lang/reactive/compileReactiveExpression.js +1 -3
- package/src/core/lang/reactive/pegjs/ReactivePegCompiler.d.ts.map +1 -1
- package/src/core/lang/reactive/pegjs/ReactivePegCompiler.js +11 -5
- package/src/core/math/PI_RECIPROCAL.d.ts +6 -0
- package/src/core/math/PI_RECIPROCAL.d.ts.map +1 -0
- package/src/core/math/PI_RECIPROCAL.js +5 -0
- package/src/core/math/newton_solver_1d.d.ts +4 -3
- package/src/core/math/newton_solver_1d.d.ts.map +1 -1
- package/src/core/math/newton_solver_1d.js +4 -3
- package/src/core/math/physics/brdf/D_GGX.d.ts.map +1 -1
- package/src/core/math/physics/brdf/D_GGX.js +4 -1
- package/src/core/math/physics/brdf/brdf_burley.d.ts.map +1 -1
- package/src/core/math/physics/brdf/brdf_burley.js +5 -1
- package/src/core/math/physics/irradiance/interpolate_irradiance_smith.d.ts.map +1 -1
- package/src/core/math/physics/irradiance/interpolate_irradiance_smith.js +3 -3
- package/src/core/primitives/strings/insert_after.spec.d.ts +2 -0
- package/src/core/primitives/strings/insert_after.spec.d.ts.map +1 -0
- package/src/core/primitives/strings/insert_after.spec.js +16 -0
- package/src/core/primitives/strings/insert_before.spec.d.ts +2 -0
- package/src/core/primitives/strings/insert_before.spec.d.ts.map +1 -0
- package/src/core/primitives/strings/insert_before.spec.js +16 -0
- package/src/core/process/executor/ConcurrentExecutor.d.ts.map +1 -1
- package/src/core/process/executor/ConcurrentExecutor.js +10 -4
- package/src/core/time/current_time_in_seconds.d.ts.map +1 -1
- package/src/core/time/current_time_in_seconds.js +1 -1
- package/src/engine/animation/curve/compute_curve_aabb.d.ts.map +1 -1
- package/src/engine/animation/curve/compute_curve_aabb.js +19 -16
- package/src/engine/ecs/fow/FogOfWar.d.ts.map +1 -1
- package/src/engine/ecs/fow/FogOfWar.js +12 -12
- package/src/engine/ecs/fow/FogOfWar.spec.js +5 -6
- package/src/engine/ecs/transform/Transform.d.ts.map +1 -1
- package/src/engine/ecs/transform/Transform.js +2 -2
- package/src/engine/google/loadGTAG.d.ts +7 -0
- package/src/engine/google/loadGTAG.d.ts.map +1 -0
- package/src/engine/google/loadGTAG.js +32 -0
- package/src/engine/graphics/texture/sampler/distance/computeUnsignedDistanceField.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/distance/computeUnsignedDistanceField.js +6 -1
- package/src/engine/graphics/texture/sampler/distance/computeUnsignedDistanceField_Chamfer.d.ts.map +1 -1
- package/src/engine/graphics/texture/sampler/distance/computeUnsignedDistanceField_Chamfer.js +17 -1
- package/src/engine/graphics/texture/virtual/tile/VirtualTextureTile.d.ts +4 -0
- package/src/engine/graphics/texture/virtual/tile/VirtualTextureTile.d.ts.map +1 -1
- package/src/engine/graphics/texture/virtual/tile/VirtualTextureTile.js +4 -0
- package/src/engine/graphics/trail/x/NOTES.md +3 -0
- package/src/engine/graphics/trail/x/RibbonMaterialX.d.ts +11 -2
- package/src/engine/graphics/trail/x/RibbonMaterialX.d.ts.map +1 -1
- package/src/engine/graphics/trail/x/RibbonMaterialX.js +28 -13
- package/src/engine/graphics/util/projectSphere.js +4 -4
- package/src/engine/metrics/GoogleAnalyticsMetrics.d.ts +2 -1
- package/src/engine/metrics/GoogleAnalyticsMetrics.d.ts.map +1 -1
- package/src/engine/metrics/GoogleAnalyticsMetrics.js +4 -39
- package/src/engine/notify/NotificationLog.d.ts +1 -2
- package/src/engine/notify/NotificationLog.d.ts.map +1 -1
- package/src/engine/notify/NotificationLog.js +33 -32
- package/src/core/geom/3d/mat4/allocate_transform_m4.d.ts.map +0 -1
- package/src/core/lang/reactive/nearley/Reactive.ne +0 -87
- package/src/engine/compression/CompressionService.d.ts +0 -19
- package/src/engine/compression/CompressionService.d.ts.map +0 -1
- package/src/engine/compression/CompressionService.js +0 -144
- package/src/engine/graphics/trail/CodeflowTrailMaterial.d.ts +0 -4
- package/src/engine/graphics/trail/CodeflowTrailMaterial.d.ts.map +0 -1
- package/src/engine/graphics/trail/CodeflowTrailMaterial.js +0 -134
- package/src/engine/graphics/trail/TemporalPath.d.ts +0 -39
- package/src/engine/graphics/trail/TemporalPath.d.ts.map +0 -1
- package/src/engine/graphics/trail/TemporalPath.js +0 -129
- package/src/engine/graphics/trail/TemporalPath.spec.d.ts +0 -2
- package/src/engine/graphics/trail/TemporalPath.spec.d.ts.map +0 -1
- package/src/engine/graphics/trail/TemporalPath.spec.js +0 -5
- package/src/engine/graphics/util/composeMatrix4RotationScale.d.ts +0 -9
- package/src/engine/graphics/util/composeMatrix4RotationScale.d.ts.map +0 -1
- package/src/engine/graphics/util/composeMatrix4RotationScale.js +0 -14
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Borrowed from https://github.com/pyalot/webgl-trails
|
|
3
|
-
* Created by Alex on 14/06/2017.
|
|
4
|
-
* @author Alex Goldring
|
|
5
|
-
* @author pyalot
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { DoubleSide, NormalBlending, ShaderMaterial, Vector2, Vector4 } from 'three';
|
|
10
|
-
|
|
11
|
-
const vertexShader = `
|
|
12
|
-
varying vec2 vUv;
|
|
13
|
-
varying float vOpacity;
|
|
14
|
-
|
|
15
|
-
attribute vec3 last, next;
|
|
16
|
-
attribute float off;
|
|
17
|
-
attribute float uvOffset;
|
|
18
|
-
attribute float age;
|
|
19
|
-
|
|
20
|
-
uniform vec2 viewport;
|
|
21
|
-
uniform float width;
|
|
22
|
-
uniform float maxAge;
|
|
23
|
-
uniform float time;
|
|
24
|
-
|
|
25
|
-
float pi = 3.141592653589793;
|
|
26
|
-
|
|
27
|
-
vec4 transform(vec3 coord){
|
|
28
|
-
return projectionMatrix * modelViewMatrix * vec4(coord, 1.0);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
vec2 project(vec4 device){
|
|
32
|
-
vec3 device_normal = device.xyz/device.w;
|
|
33
|
-
vec2 clip_pos = (device_normal*0.5+0.5).xy;
|
|
34
|
-
return clip_pos * viewport;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
vec4 unproject(vec2 screen, float z, float w){
|
|
38
|
-
vec2 clip_pos = screen/viewport;
|
|
39
|
-
vec2 device_normal = clip_pos*2.0-1.0;
|
|
40
|
-
return vec4(device_normal*w, z, w);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
float estimateScale(vec3 position, vec2 sPosition){
|
|
44
|
-
vec4 view_pos = modelViewMatrix * vec4(position, 1.0);
|
|
45
|
-
float halfWidth = width*0.5;
|
|
46
|
-
vec4 scale_pos = view_pos - vec4(normalize(view_pos.xy)*halfWidth, 0.0, 0.0);
|
|
47
|
-
vec2 screen_scale_pos = project(projectionMatrix * scale_pos);
|
|
48
|
-
return distance(sPosition, screen_scale_pos);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
float curvatureCorrection(vec2 a, vec2 b){
|
|
52
|
-
float p = a.x*b.y - a.y*b.x;
|
|
53
|
-
float c = atan(p, dot(a,b))/pi;
|
|
54
|
-
return clamp(c, -1.0, 1.0);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
void main(){
|
|
58
|
-
vec2 sLast = project(transform(last.xyz));
|
|
59
|
-
vec2 sNext = project(transform(next.xyz));
|
|
60
|
-
|
|
61
|
-
vec4 dCurrent = transform(position.xyz);
|
|
62
|
-
vec2 sCurrent = project(dCurrent);
|
|
63
|
-
|
|
64
|
-
vec2 normal1 = normalize(sLast - sCurrent);
|
|
65
|
-
vec2 normal2 = normalize(sCurrent - sNext);
|
|
66
|
-
vec2 normal = (normal1 + normal2)*0.5;
|
|
67
|
-
vUv = vec2(uvOffset*0.7, off*0.5+0.5);
|
|
68
|
-
|
|
69
|
-
float relativeAge = clamp(age/maxAge, 0.0, 1.0);
|
|
70
|
-
vOpacity = 1.0 - relativeAge;
|
|
71
|
-
|
|
72
|
-
vec2 dir = vec2(normal.y, -normal.x)*off;
|
|
73
|
-
|
|
74
|
-
float scale = estimateScale(position.xyz, sCurrent);
|
|
75
|
-
vec2 pos = sCurrent + dir*scale;
|
|
76
|
-
|
|
77
|
-
gl_Position = unproject(pos, dCurrent.z, dCurrent.w);
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
80
|
-
|
|
81
|
-
const fragmentShader = `
|
|
82
|
-
varying vec2 vUv;
|
|
83
|
-
varying float vOpacity;
|
|
84
|
-
uniform vec4 color;
|
|
85
|
-
|
|
86
|
-
uniform sampler2D uTexture;
|
|
87
|
-
|
|
88
|
-
void main(){
|
|
89
|
-
vec4 diffuseColor = color;
|
|
90
|
-
diffuseColor.a *= vOpacity;
|
|
91
|
-
|
|
92
|
-
#ifdef USE_TEXTURE
|
|
93
|
-
vec4 texel = texture2D(uTexture, vUv);
|
|
94
|
-
diffuseColor *= texel;
|
|
95
|
-
#endif
|
|
96
|
-
|
|
97
|
-
gl_FragColor = diffuseColor;
|
|
98
|
-
}
|
|
99
|
-
`;
|
|
100
|
-
|
|
101
|
-
function CodeflowMaterial() {
|
|
102
|
-
const uniforms = {
|
|
103
|
-
uTexture: { type: "t", value: null },
|
|
104
|
-
viewport: { type: "v2", value: new Vector2(800, 600) },
|
|
105
|
-
width: { type: "f", value: 5 },
|
|
106
|
-
time: { type: "f", value: 0 },
|
|
107
|
-
maxAge: { type: "f", value: 1 },
|
|
108
|
-
color: { type: "v4", value: new Vector4(1, 1, 1, 1) }
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
const side = DoubleSide;
|
|
112
|
-
|
|
113
|
-
const shaderMaterial = new ShaderMaterial({
|
|
114
|
-
uniforms: uniforms,
|
|
115
|
-
vertexShader: vertexShader,
|
|
116
|
-
fragmentShader: fragmentShader,
|
|
117
|
-
side: side,
|
|
118
|
-
blending: NormalBlending,
|
|
119
|
-
lights: false,
|
|
120
|
-
depthTest: true,
|
|
121
|
-
depthWrite: false,
|
|
122
|
-
transparent: true,
|
|
123
|
-
defines: {
|
|
124
|
-
USE_TEXTURE: false
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
|
|
128
|
-
shaderMaterial.needsUpdate = true;
|
|
129
|
-
|
|
130
|
-
//shaderMaterial.defaultAttributeValues.tangent = [0, 1, 0];
|
|
131
|
-
return shaderMaterial;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export default CodeflowMaterial;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Keeps tracks of a moving point for a given time window
|
|
3
|
-
*/
|
|
4
|
-
export class TemporalPath {
|
|
5
|
-
/**
|
|
6
|
-
* How long to track the points for
|
|
7
|
-
* @type {number}
|
|
8
|
-
*/
|
|
9
|
-
memory: number;
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* @type {number}
|
|
13
|
-
*/
|
|
14
|
-
time: number;
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @type {RowFirstTable}
|
|
18
|
-
*/
|
|
19
|
-
data: RowFirstTable;
|
|
20
|
-
updateSequence(): void;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param {number} timeDelta
|
|
24
|
-
*/
|
|
25
|
-
update(timeDelta: number): void;
|
|
26
|
-
/**
|
|
27
|
-
* @returns {number}
|
|
28
|
-
*/
|
|
29
|
-
computeLength(): number;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @param {number} x
|
|
33
|
-
* @param {number} y
|
|
34
|
-
* @param {number} z
|
|
35
|
-
*/
|
|
36
|
-
append(x: number, y: number, z: number): void;
|
|
37
|
-
}
|
|
38
|
-
import { RowFirstTable } from "../../../core/collection/table/RowFirstTable.js";
|
|
39
|
-
//# sourceMappingURL=TemporalPath.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TemporalPath.d.ts","sourceRoot":"","sources":["../../../../../src/engine/graphics/trail/TemporalPath.js"],"names":[],"mappings":"AAWA;;GAEG;AACH;IACI;;;OAGG;IACH,QAFU,MAAM,CAEL;IAEX;;;OAGG;IACH,MAFU,MAAM,CAEP;IAET;;;OAGG;IACH,MAFU,aAAa,CAEc;IAErC,uBAoBC;IAED;;;OAGG;IACH,kBAFW,MAAM,QAMhB;IAED;;OAEG;IACH,iBAFa,MAAM,CA4ClB;IAED;;;;;OAKG;IACH,UAJW,MAAM,KACN,MAAM,KACN,MAAM,QAShB;CACJ;8BA9H6B,iDAAiD"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { RowFirstTable } from "../../../core/collection/table/RowFirstTable.js";
|
|
2
|
-
import { BinaryDataType } from "../../../core/binary/type/BinaryDataType.js";
|
|
3
|
-
import { RowFirstTableSpec } from "../../../core/collection/table/RowFirstTableSpec.js";
|
|
4
|
-
|
|
5
|
-
const TABLE_SPEC = RowFirstTableSpec.get([
|
|
6
|
-
// time
|
|
7
|
-
BinaryDataType.Float32,
|
|
8
|
-
// position XYZ
|
|
9
|
-
BinaryDataType.Float32, BinaryDataType.Float32, BinaryDataType.Float32
|
|
10
|
-
]);
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Keeps tracks of a moving point for a given time window
|
|
14
|
-
*/
|
|
15
|
-
export class TemporalPath {
|
|
16
|
-
/**
|
|
17
|
-
* How long to track the points for
|
|
18
|
-
* @type {number}
|
|
19
|
-
*/
|
|
20
|
-
memory = 0;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
*/
|
|
26
|
-
time = 0;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {RowFirstTable}
|
|
31
|
-
*/
|
|
32
|
-
data = new RowFirstTable(TABLE_SPEC);
|
|
33
|
-
|
|
34
|
-
updateSequence() {
|
|
35
|
-
const sequence = this.data;
|
|
36
|
-
//determine if position sequence can be cropped
|
|
37
|
-
const numRecords = sequence.length;
|
|
38
|
-
|
|
39
|
-
if (numRecords === 0) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const lastUsefulMemory = this.time - this.memory;
|
|
44
|
-
|
|
45
|
-
let i = 0;
|
|
46
|
-
|
|
47
|
-
while (i < numRecords && sequence.readCellValue(i, 0) < lastUsefulMemory) {
|
|
48
|
-
i++;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
if (i > 0) {
|
|
52
|
-
sequence.removeRows(0, i);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @param {number} timeDelta
|
|
59
|
-
*/
|
|
60
|
-
update(timeDelta) {
|
|
61
|
-
this.time += timeDelta;
|
|
62
|
-
|
|
63
|
-
this.updateSequence();
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @returns {number}
|
|
68
|
-
*/
|
|
69
|
-
computeLength() {
|
|
70
|
-
|
|
71
|
-
let i;
|
|
72
|
-
const numRecords = this.data.length;
|
|
73
|
-
|
|
74
|
-
if (numRecords === 0) {
|
|
75
|
-
return 0;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
let _x, _y, _z;
|
|
79
|
-
|
|
80
|
-
this.data.getRow(0, tempSequenceRecord);
|
|
81
|
-
|
|
82
|
-
_x = tempSequenceRecord[1];
|
|
83
|
-
_y = tempSequenceRecord[2];
|
|
84
|
-
_z = tempSequenceRecord[3];
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
let result = 0;
|
|
88
|
-
|
|
89
|
-
for (i = 1; i < numRecords; i++) {
|
|
90
|
-
this.data.getRow(i, tempSequenceRecord);
|
|
91
|
-
|
|
92
|
-
const x = tempSequenceRecord[1];
|
|
93
|
-
const y = tempSequenceRecord[2];
|
|
94
|
-
const z = tempSequenceRecord[3];
|
|
95
|
-
|
|
96
|
-
const dX = x - _x;
|
|
97
|
-
const dY = y - _y;
|
|
98
|
-
const dZ = z - _z;
|
|
99
|
-
|
|
100
|
-
const d = Math.sqrt(dX * dX + dY * dY + dZ * dZ);
|
|
101
|
-
|
|
102
|
-
result += d;
|
|
103
|
-
|
|
104
|
-
//remember current coordinates
|
|
105
|
-
_x = x;
|
|
106
|
-
_y = y;
|
|
107
|
-
_z = z;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return result;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
*
|
|
115
|
-
* @param {number} x
|
|
116
|
-
* @param {number} y
|
|
117
|
-
* @param {number} z
|
|
118
|
-
*/
|
|
119
|
-
append(x, y, z) {
|
|
120
|
-
tempSequenceRecord[0] = this.time;
|
|
121
|
-
tempSequenceRecord[1] = x;
|
|
122
|
-
tempSequenceRecord[2] = y;
|
|
123
|
-
tempSequenceRecord[3] = z;
|
|
124
|
-
|
|
125
|
-
this.data.addRow(tempSequenceRecord);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
const tempSequenceRecord = [];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TemporalPath.spec.d.ts","sourceRoot":"","sources":["../../../../../src/engine/graphics/trail/TemporalPath.spec.js"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {Matrix4} result
|
|
4
|
-
* @param {Quaternion} rotation
|
|
5
|
-
* @param {Vector3} scale
|
|
6
|
-
*/
|
|
7
|
-
export function composeMatrix4RotationScale(result: Matrix4, rotation: Quaternion, scale: Vector3): void;
|
|
8
|
-
import Vector3 from "../../../core/geom/Vector3.js";
|
|
9
|
-
//# sourceMappingURL=composeMatrix4RotationScale.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composeMatrix4RotationScale.d.ts","sourceRoot":"","sources":["../../../../../src/engine/graphics/util/composeMatrix4RotationScale.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,0FAFW,OAAO,QAMjB;oBAbmB,+BAA+B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import Vector3 from "../../../core/geom/Vector3.js";
|
|
2
|
-
import { compose_matrix4_array } from "../../../core/geom/3d/compose_matrix4_array.js";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
*
|
|
6
|
-
* @param {Matrix4} result
|
|
7
|
-
* @param {Quaternion} rotation
|
|
8
|
-
* @param {Vector3} scale
|
|
9
|
-
*/
|
|
10
|
-
export function composeMatrix4RotationScale(result, rotation, scale) {
|
|
11
|
-
const te = result.elements;
|
|
12
|
-
|
|
13
|
-
compose_matrix4_array(te, Vector3.zero, rotation, scale);
|
|
14
|
-
}
|