repo: janusweb action: commit revision: path_from: revision_from: 34f2a994fa91f37425fc09c49c424553a1dbb213: path_to: revision_to:
commit 34f2a994fa91f37425fc09c49c424553a1dbb213 Author: James BaicoianuDate: Mon Jul 13 11:35:39 2020 -0700 Bypass proxy objects for texture parameter updates (performance boost) diff --git a/scripts/object.js b/scripts/object.js
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -960,9 +960,9 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
});
}
let applyTextureOffset = (texture) => {
- texture.offset.copy(this.texture_offset);
- texture.repeat.copy(this.texture_repeat);
- texture.rotation = this.texture_rotation;
+ texture.offset.copy(this.properties.texture_offset);
+ texture.repeat.copy(this.properties.texture_repeat);
+ texture.rotation = this.properties.texture_rotation;
}
this.objectMeshes.forEach(n => {
n.onBeforeRender = () => {
-----END OF PAGE-----