minerender 2.1.0-alpha.14 → 2.1.0-alpha.16

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/bundle.js CHANGED
@@ -66946,7 +66946,11 @@ return ${compiler2.callType("value", tagType)}
66946
66946
 
66947
66947
  if (SHADE) {
66948
66948
 
66949
- vec3 N = vec3( modelMatrix * instanceMatrix * vec4(normal, 0.0) );
66949
+ #ifdef USE_INSTANCING
66950
+ vec3 N = vec3( modelMatrix * instanceMatrix * vec4(normal, 0.0) );
66951
+ #else
66952
+ vec3 N = vec3( modelMatrix * vec4(normal, 0.0) );
66953
+ #endif
66950
66954
 
66951
66955
  float yLight = (1.0+N.y) * 0.5;
66952
66956
  light = yLight * (1.0-AMBIENT) + N.x*N.x * XFAC + N.z*N.z * ZFAC + AMBIENT;
@@ -80170,9 +80174,6 @@ return ${compiler2.callType("value", tagType)}
80170
80174
  }
80171
80175
  }
80172
80176
  obj.setRotation(rotation);
80173
- setTimeout(() => {
80174
- obj.setRotation(rotation);
80175
- }, 150);
80176
80177
  console.log(obj);
80177
80178
  return obj;
80178
80179
  }
@@ -80263,10 +80264,11 @@ return ${compiler2.callType("value", tagType)}
80263
80264
  }
80264
80265
  }
80265
80266
  setPosition(position) {
80266
- super.setPosition(position);
80267
+ this.position.copy(position);
80267
80268
  for (let model of this._models) {
80268
80269
  model.setPosition(position);
80269
80270
  }
80271
+ this.notifyDirty();
80270
80272
  }
80271
80273
  //TODO: should override rotation + scale methods
80272
80274
  //TODO