@@ -128,8 +128,8 @@ class OGC3DTilesLayer extends GeometryLayer {
128128 * @param {String } [config.pntsSizeMode= PNTS_SIZE_MODE.VALUE] {@link PointsMaterial} Point cloud size mode (passed to {@link PointsMaterial}).
129129 * Only 'VALUE' or 'ATTENUATED' are possible. VALUE use constant size, ATTENUATED compute size depending on distance
130130 * from point to camera.
131- * @param {Number } [config.pntsMinAttenuatedSize=3 ] Minimum scale used by 'ATTENUATED' size mode.
132- * @param {Number } [config.pntsMaxAttenuatedSize=10 ] Maximum scale used by 'ATTENUATED' size mode.
131+ * @param {Number } [config.pntsMinAttenuatedSize=1 ] Minimum scale used by 'ATTENUATED' size mode.
132+ * @param {Number } [config.pntsMaxAttenuatedSize=7 ] Maximum scale used by 'ATTENUATED' size mode.
133133 */
134134 constructor ( id , config ) {
135135 super ( id , new THREE . Group ( ) , { source : config . source } ) ;
@@ -186,8 +186,8 @@ class OGC3DTilesLayer extends GeometryLayer {
186186 this . pntsShape = config . pntsShape ?? PNTS_SHAPE . CIRCLE ;
187187 this . classification = config . classification ?? ClassificationScheme . DEFAULT ;
188188 this . pntsSizeMode = config . pntsSizeMode ?? PNTS_SIZE_MODE . VALUE ;
189- this . pntsMinAttenuatedSize = config . pntsMinAttenuatedSize || 3 ;
190- this . pntsMaxAttenuatedSize = config . pntsMaxAttenuatedSize || 10 ;
189+ this . pntsMinAttenuatedSize = config . pntsMinAttenuatedSize || 1 ;
190+ this . pntsMaxAttenuatedSize = config . pntsMaxAttenuatedSize || 7 ;
191191 }
192192
193193 /**
@@ -303,7 +303,8 @@ class OGC3DTilesLayer extends GeometryLayer {
303303 }
304304 }
305305
306- preUpdate ( ) {
306+ preUpdate ( context ) {
307+ this . scale = context . camera . _preSSE ;
307308 this . tilesRenderer . update ( ) ;
308309 return null ; // don't return any element because 3d-tiles-renderer already updates them
309310 }
0 commit comments