-
-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FloatTexture version Blendshape (#737)
* feat: add texture-2d-array and rename TextureCubeMap to TextureCube * feat: opt blendshape animation and improve attribute version
- Loading branch information
1 parent
18e7bc7
commit a2f0584
Showing
54 changed files
with
1,222 additions
and
412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"npmClient": "npm", | ||
"version": "0.6.7", | ||
"version": "0.7.0-beta.0", | ||
"bootstrap": { | ||
"hoist": true | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { UpdateFlag } from "./UpdateFlag"; | ||
|
||
/** | ||
* Used to update tags. | ||
*/ | ||
export class BoolUpdateFlag extends UpdateFlag { | ||
/** Flag. */ | ||
flag = true; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
dispatch(): void { | ||
this.flag = true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { UpdateFlag } from "./UpdateFlag"; | ||
|
||
/** | ||
* Used to update tags. | ||
*/ | ||
export class ListenerUpdateFlag extends UpdateFlag { | ||
/** Listener. */ | ||
listener: Function; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
dispatch(param?: Object): void { | ||
this.listener && this.listener(param); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,39 @@ | ||
import { removeFromArray } from "./base/Util"; | ||
import { UpdateFlagManager } from "./UpdateFlagManager"; | ||
|
||
/** | ||
* Used to update tags. | ||
*/ | ||
export class UpdateFlag { | ||
/** Flag. */ | ||
flag = true; | ||
export abstract class UpdateFlag { | ||
/** @internal */ | ||
_flagManagers: UpdateFlagManager[] = []; | ||
|
||
constructor(private _flags: UpdateFlag[] = []) { | ||
this._flags.push(this); | ||
/** | ||
* Dispatch. | ||
* @param param - Parameter | ||
*/ | ||
abstract dispatch(param?: Object): void; | ||
|
||
/** | ||
* Clear. | ||
*/ | ||
clearFromManagers(): void { | ||
this._removeFromManagers(); | ||
this._flagManagers.length = 0; | ||
} | ||
|
||
/** | ||
* Destroy. | ||
*/ | ||
destroy(): void { | ||
const flags = this._flags; | ||
removeFromArray(flags, this); | ||
this._flags = null; | ||
this._removeFromManagers(); | ||
this._flagManagers = null; | ||
} | ||
|
||
private _removeFromManagers(): void { | ||
const flagManagers = this._flagManagers; | ||
for (let i = 0, n = flagManagers.length; i < n; i++) { | ||
removeFromArray(flagManagers[i]._updateFlags, this); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.