@woosh/meep-engine 2.150.0 → 2.152.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/package.json +1 -1
- package/src/engine/graphics/ecs/trail2d/Trail2D.d.ts +7 -7
- package/src/engine/graphics/ecs/trail2d/Trail2D.d.ts.map +1 -1
- package/src/engine/graphics/ecs/trail2d/Trail2D.js +3 -3
- package/src/engine/graphics/render/buffer/simple-fx/ao/SAOShader.js +1 -1
- package/src/engine/graphics/render/buffer/simple-fx/ao/SAOUpscaleShader.js +1 -1
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "Pure JavaScript game engine. Fully featured and production ready.",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"author": "Alexander Goldring",
|
|
9
|
-
"version": "2.
|
|
9
|
+
"version": "2.152.0",
|
|
10
10
|
"main": "build/meep.module.js",
|
|
11
11
|
"module": "build/meep.module.js",
|
|
12
12
|
"exports": {
|
|
@@ -28,9 +28,9 @@ declare class Trail2D {
|
|
|
28
28
|
timeSinceLastUpdate: number;
|
|
29
29
|
/**
|
|
30
30
|
* @readonly
|
|
31
|
-
* @type {
|
|
31
|
+
* @type {Color}
|
|
32
32
|
*/
|
|
33
|
-
readonly color:
|
|
33
|
+
readonly color: Color;
|
|
34
34
|
/**
|
|
35
35
|
* World offset
|
|
36
36
|
* @readonly
|
|
@@ -106,10 +106,10 @@ declare class Trail2D {
|
|
|
106
106
|
maxAge: number;
|
|
107
107
|
width: number;
|
|
108
108
|
color: {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
r: number;
|
|
110
|
+
g: number;
|
|
111
|
+
b: number;
|
|
112
|
+
a: number;
|
|
113
113
|
};
|
|
114
114
|
textureURL: string;
|
|
115
115
|
offset: {
|
|
@@ -138,7 +138,7 @@ declare namespace Trail2D {
|
|
|
138
138
|
export let serializable: boolean;
|
|
139
139
|
export { makeGradientTrail };
|
|
140
140
|
}
|
|
141
|
-
import
|
|
141
|
+
import { Color } from "../../../../core/color/Color.js";
|
|
142
142
|
import Vector3 from "../../../../core/geom/Vector3.js";
|
|
143
143
|
import { RibbonX } from "../../trail/x/RibbonX.js";
|
|
144
144
|
import { RibbonXMaterialSpec } from "../../trail/x/RibbonXMaterialSpec.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Trail2D.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/ecs/trail2d/Trail2D.js"],"names":[],"mappings":";AAmBA;IAkJI,oCAMC;IAtJD;;;OAGG;IACH,QAFU,MAAM,CAES;IAEzB;;;OAGG;IACH,OAFU,MAAM,CAEM;IAEtB;;;OAGG;IACH,MAFU,MAAM,CAEP;IAET;;;OAGG;IACH,eAFU,MAAM,CAEE;IAElB;;;OAGG;IACH,qBAFU,MAAM,CAEQ;IAExB;;;OAGG;IACH,gBAFU,
|
|
1
|
+
{"version":3,"file":"Trail2D.d.ts","sourceRoot":"","sources":["../../../../../../src/engine/graphics/ecs/trail2d/Trail2D.js"],"names":[],"mappings":";AAmBA;IAkJI,oCAMC;IAtJD;;;OAGG;IACH,QAFU,MAAM,CAES;IAEzB;;;OAGG;IACH,OAFU,MAAM,CAEM;IAEtB;;;OAGG;IACH,MAFU,MAAM,CAEP;IAET;;;OAGG;IACH,eAFU,MAAM,CAEE;IAElB;;;OAGG;IACH,qBAFU,MAAM,CAEQ;IAExB;;;OAGG;IACH,gBAFU,KAAK,CAEe;IAE9B;;;;OAIG;IACH,iBAFU,OAAO,CAEM;IAEvB;;;OAGG;IACH,QAFU,OAAO,GAAC,IAAI,CAER;IAEd;;;OAGG;IACH,UAFU,mBAAmB,CAEQ;IAErC;;;OAGG;IACH,cAFU,SAAS,CAEG;IAEtB;;;OAGG;IACH,cAAsB;IAEtB,gBAQC;IAMD,4BAEC;IAND,yBAEC;IAMD;;;;OAIG;IACH,cAHW,MAAM,GAAC,YAAY,GACjB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GAAC,YAAY,GACjB,IAAI,CAIhB;IAED;;;;OAIG;IACH,gBAHW,MAAM,GAAC,YAAY,SACnB,OAAO,QAQjB;IAED;;;;OAIG;IACH,cAHW,MAAM,GAAC,YAAY,GACjB,OAAO,CAInB;IAED;;;OAGG;IACH,qBAFW,MAAM,QAehB;IADG,kHAAgB;IAWpB;;;;;;;;;;;aAcC;IAGD;;;;;;;;;;;;;;;MAQC;IAED;;;OAGG;IACH,cAFW,OAAO,WASjB;IAED;;;;;;;OAOG;IACH,cANW,MAAM,KACN,MAAM,KACN,MAAM,YACN,MAAM,GACJ,OAAO,CA2CnB;CAEJ;;;;;;sBAvQqB,iCAAiC;oBACnC,kCAAkC;wBAI9B,0BAA0B;oCACd,sCAAsC;0BAPhD,yCAAyC;6BAStC,mBAAmB;kCADd,wBAAwB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BvhClient } from "../../../../core/bvh2/bvh3/BvhClient.js";
|
|
2
|
+
import { Color } from "../../../../core/color/Color.js";
|
|
2
3
|
import Vector3 from "../../../../core/geom/Vector3.js";
|
|
3
|
-
import Vector4 from "../../../../core/geom/Vector4.js";
|
|
4
4
|
import { clamp01 } from "../../../../core/math/clamp01.js";
|
|
5
5
|
import ThreeFactory from "../../three/ThreeFactory.js";
|
|
6
6
|
import { RIBBON_ATTRIBUTE_ADDRESS_AGE } from "../../trail/x/ribbon_attributes_spec.js";
|
|
@@ -51,9 +51,9 @@ class Trail2D {
|
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* @readonly
|
|
54
|
-
* @type {
|
|
54
|
+
* @type {Color}
|
|
55
55
|
*/
|
|
56
|
-
color = new
|
|
56
|
+
color = new Color(1, 1, 1, 1);
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* World offset
|
|
@@ -314,7 +314,7 @@ const SAOShader = {
|
|
|
314
314
|
|
|
315
315
|
vec3 direction_to_hit = normalize(occluderVS - sampleOrigin);
|
|
316
316
|
|
|
317
|
-
if( dot( direction_to_hit, centerViewNormal) < 0.
|
|
317
|
+
if( dot( direction_to_hit, centerViewNormal) < 0.06 ){ // ~sqrt( 1/255 )
|
|
318
318
|
// unable to occlude
|
|
319
319
|
continue;
|
|
320
320
|
}
|