@@ -51,6 +51,8 @@ import { Texture } from '../platform/graphics/texture.js';
51
51
import { VertexBuffer } from '../platform/graphics/vertex-buffer.js' ;
52
52
import { VertexFormat } from '../platform/graphics/vertex-format.js' ;
53
53
import { VertexIterator } from '../platform/graphics/vertex-iterator.js' ;
54
+ import { ShaderUtils } from '../platform/graphics/shader-utils.js' ;
55
+ import { GraphicsDeviceAccess } from '../platform/graphics/graphics-device-access.js' ;
54
56
55
57
import { PROJECTION_ORTHOGRAPHIC , PROJECTION_PERSPECTIVE , LAYERID_IMMEDIATE , LINEBATCH_OVERLAY , LAYERID_WORLD } from '../scene/constants.js' ;
56
58
import { calculateTangents , createBox , createCapsule , createCone , createCylinder , createMesh , createPlane , createSphere , createTorus } from '../scene/procedural.js' ;
@@ -111,7 +113,6 @@ import {
111
113
import { RigidBodyComponent } from '../framework/components/rigid-body/component.js' ;
112
114
import { RigidBodyComponentSystem } from '../framework/components/rigid-body/system.js' ;
113
115
import { basisInitialize } from '../framework/handlers/basis.js' ;
114
- import { ShaderUtils } from '../platform/graphics/shader-utils.js' ;
115
116
116
117
// CORE
117
118
@@ -464,6 +465,13 @@ Object.defineProperties(RenderTarget.prototype, {
464
465
}
465
466
} ) ;
466
467
468
+ Object . defineProperty ( VertexFormat , 'defaultInstancingFormat' , {
469
+ get : function ( ) {
470
+ Debug . deprecated ( 'pc.VertexFormat.defaultInstancingFormat is deprecated, use pc.VertexFormat.getDefaultInstancingFormat(graphicsDevice).' ) ;
471
+ return VertexFormat . getDefaultInstancingFormat ( GraphicsDeviceAccess . get ( ) ) ;
472
+ }
473
+ } ) ;
474
+
467
475
VertexFormat . prototype . update = function ( ) {
468
476
Debug . deprecated ( 'pc.VertexFormat.update is deprecated, and VertexFormat cannot be changed after it has been created.' ) ;
469
477
} ;
0 commit comments