@@ -104,7 +104,7 @@ export const AliAMCExtension = (Hilo3d as any).AliAMCExtension as {
104
104
* @hidden
105
105
*/
106
106
export const SeinNodeExtension : IGlTFExtension < ISeinNodeExtension > = {
107
- name : 'Sein_node ' ,
107
+ name : 'SEIN_node ' ,
108
108
optionParsers : { } ,
109
109
registerOptionParsers ( type : string , parser : ( value : any , parser : IGlTFParser , info : ISeinNodeExtension ) => any ) {
110
110
SeinNodeExtension . optionParsers [ type ] = parser ;
@@ -195,7 +195,7 @@ SeinNodeExtension.registerOptionParsers('Object', (value: Object, parser: IGlTFP
195
195
* @hidden
196
196
*/
197
197
export const SeinPhysicBodyExtension : IGlTFExtension < ISeinPhysicBodyExtension > = {
198
- name : 'Sein_physicBody ' ,
198
+ name : 'SEIN_physicBody ' ,
199
199
instantiate ( entity : SceneActor | SceneComponent , info : ISeinPhysicBodyExtension , game : Game ) {
200
200
if ( ! isSceneActor ( entity ) ) {
201
201
Debug . warn ( `You could not add physicBody to a component: ${ entity . name } , ignore...` ) ;
@@ -246,7 +246,7 @@ export const SeinPhysicBodyExtension: IGlTFExtension<ISeinPhysicBodyExtension> =
246
246
* @hidden
247
247
*/
248
248
export const SeinAnimatorExtension : IGlTFExtension < ISeinNodeExtension > = {
249
- name : 'Sein_animator ' ,
249
+ name : 'SEIN_animator ' ,
250
250
instantiate ( entity : SceneActor | SceneComponent ) {
251
251
if ( ! isSceneActor ( entity ) ) {
252
252
Debug . warn ( `You could not add animator to a component: ${ entity . name } , ignore...` ) ;
@@ -259,7 +259,7 @@ export const SeinAnimatorExtension: IGlTFExtension<ISeinNodeExtension> = {
259
259
* @hidden
260
260
*/
261
261
export const SeinRendererExtension : IGlTFExtension < ISeinRendererExtension > = {
262
- name : 'Sein_renderer ' ,
262
+ name : 'SEIN_renderer ' ,
263
263
parseOnLoad ( info , parser : IGlTFParser ) {
264
264
parser [ 'renderer' ] = parser . json . extensions . Sein_renderer || { } ;
265
265
} ,
@@ -316,7 +316,7 @@ export const SeinRendererExtension: IGlTFExtension<ISeinRendererExtension> = {
316
316
* @hidden
317
317
*/
318
318
export const SeinAmbientLightExtension : IGlTFExtension < ISeinAmbientLightExtension > = {
319
- name : 'Sein_ambientLight ' ,
319
+ name : 'SEIN_ambientLight ' ,
320
320
parseOnEnd ( info , parser : IGlTFParser , model : IGlTFModel ) {
321
321
const { color, intensity} = info ;
322
322
@@ -358,7 +358,7 @@ function getRelativePath(basePath: string, path: string) {
358
358
* @hidden
359
359
*/
360
360
export const SeinCubeTextureExtension : IGlTFExtension = {
361
- name : 'Sein_cubeTexture ' ,
361
+ name : 'SEIN_cubeTexture ' ,
362
362
init ( _ , parser : IGlTFParser ) {
363
363
const game : Game = parser . game ;
364
364
const actions = [ ] ;
@@ -421,7 +421,7 @@ export const SeinCubeTextureExtension: IGlTFExtension = {
421
421
* @hidden
422
422
*/
423
423
export const SeinImageBasedLightingExtension : IGlTFExtension < ISeinImageBasedLightingExtension > = {
424
- name : 'Sein_imageBasedLighting ' ,
424
+ name : 'SEIN_imageBasedLighting ' ,
425
425
init ( _ , parser : IGlTFParser ) {
426
426
const game : Game = parser . game ;
427
427
const extensions = parser . json . extensions || { } ;
@@ -527,7 +527,7 @@ export const SeinImageBasedLightingExtension: IGlTFExtension<ISeinImageBasedLigh
527
527
* @hidden
528
528
*/
529
529
export const SeinAtlasExtension : IGlTFExtension = {
530
- name : 'Sein_atlas ' ,
530
+ name : 'SEIN_atlas ' ,
531
531
init ( _ , parser : IGlTFParser ) {
532
532
const game : Game = parser . game ;
533
533
const actions = [ ] ;
@@ -588,7 +588,7 @@ export const SeinAtlasExtension: IGlTFExtension = {
588
588
* 这里的扩展仅仅是全局用于加载材质脚本的。
589
589
*/
590
590
export const SeinCustomMaterialExtension : IGlTFExtension = {
591
- name : 'Sein_customMaterial ' ,
591
+ name : 'SEIN_customMaterial ' ,
592
592
cache : { } ,
593
593
init ( _ , parser : IGlTFParser ) {
594
594
const actions = [ ] ;
@@ -632,7 +632,7 @@ export class FakeHiloSprite extends Hilo3d.Node {
632
632
* @hidden
633
633
*/
634
634
export const SeinSpriteExtension : IGlTFExtension < ISeinSpriteExtension > = {
635
- name : 'Sein_sprite ' ,
635
+ name : 'SEIN_sprite ' ,
636
636
init ( _ , parser : IGlTFParser ) {
637
637
const extensions = parser . json . extensions || { } ;
638
638
const ex : ISeinSpriteSourceExtension = extensions . Sein_sprite || { } ;
@@ -666,7 +666,7 @@ export const SeinSpriteExtension: IGlTFExtension<ISeinSpriteExtension> = {
666
666
* @hidden
667
667
*/
668
668
export const SeinSkyboxExtension : IGlTFExtension < ISeinSkyboxExtension > = {
669
- name : 'Sein_skybox ' ,
669
+ name : 'SEIN_skybox ' ,
670
670
parse ( info : ISeinSkyboxExtension , parser : IGlTFParser , entity : any ) {
671
671
const camera = entity ;
672
672
@@ -699,7 +699,7 @@ export const SeinSkyboxExtension: IGlTFExtension<ISeinSkyboxExtension> = {
699
699
* @hidden
700
700
*/
701
701
export const SeinTextureImproveExtension : IGlTFExtension < ISeinTextureImproveExtension > = {
702
- name : 'Sein_textureImprove ' ,
702
+ name : 'SEIN_textureImprove ' ,
703
703
parse ( info : ISeinTextureImproveExtension , parser : IGlTFParser , texture : Texture ) {
704
704
texture . isImageCanRelease = info . isImageCanRelease ;
705
705
texture . anisotropic = info . anisotropic || texture . anisotropic ;
0 commit comments