Skip to content

Instantly share code, notes, and snippets.

@mbritton
Created January 3, 2023 23:59
Show Gist options
  • Save mbritton/59e6f2adad9b3ecf25e03b3e293701c5 to your computer and use it in GitHub Desktop.
Save mbritton/59e6f2adad9b3ecf25e03b3e293701c5 to your computer and use it in GitHub Desktop.
X3DOM JavaScript Fix for Programmatically Applied Textures
x3dom.Texture.prototype.update = function () {
if (x3dom.isa(this.node, x3dom.nodeTypes.Text)) {
this.updateText();
} else {
this.updateTexture();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment