@woosh/meep-engine 2.33.34 → 2.33.35

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.
@@ -73,29 +73,6 @@ export class MaterialContext {
73
73
  return this.instances.has(occurrence.instance_id);
74
74
  }
75
75
 
76
- /**
77
- * Generate a new custom cache key for three.js internal shader compilation
78
- * @param {Material} material
79
- * @returns {function()}
80
- * @private
81
- */
82
- __make_custom_cache_key(material) {
83
- let existingKeyMaker = material.customProgramCacheKey;
84
-
85
- return () => {
86
- let v = '';
87
- const attributes = this.__vertex_spec.attributes;
88
- const attribute_count = attributes.length;
89
-
90
- for (let i = 0; i < attribute_count; i++) {
91
- const a = attributes[i];
92
- v += `${a.name}:${a.type}:${a.itemSize}:${a.normalized ? 1 : 0}`;
93
- }
94
-
95
- return existingKeyMaker.call(material) + v;
96
- }
97
- }
98
-
99
76
  init(gl) {
100
77
  this.adapter.__gl_context = gl;
101
78
 
@@ -105,7 +82,6 @@ export class MaterialContext {
105
82
 
106
83
  if (material[MATERIAL_FLAG] === undefined) {
107
84
  material.onBeforeCompile = composeCompile(this.material.onBeforeCompile, rewrite_material);
108
- material.customProgramCacheKey = this.__make_custom_cache_key(this.material);
109
85
 
110
86
  material[MATERIAL_FLAG] = true;
111
87
  material[MATERIAL_VERTEX_DISPLACED] = true;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "productName": "Meep",
5
5
  "description": "production-ready JavaScript game engine based on Entity Component System Architecture",
6
6
  "author": "Alexander Goldring",
7
- "version": "2.33.34",
7
+ "version": "2.33.35",
8
8
  "dependencies": {
9
9
  "fast-levenshtein": "2.0.6",
10
10
  "opentype.js": "1.3.3",