UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

22 lines (17 loc) 442 B
import { Action } from "../../../src/core/process/undo/Action.js"; export class ActionUpdateTexture extends Action { /** * * @param {THREE.Texture} texture */ constructor(texture) { super(); this.__texture = texture; } async apply(context) { this.__texture.needsUpdate = true; } async revert(context) { this.__texture.needsUpdate = true; } }