codecamp

three.js InstancedBufferGeometry

BufferGeometry 的实例化版本。

构造函数

InstancedBufferGeometry( )

默认构造函数没有参数。

属性

继承属性详见 BufferGeometry。

.instanceCount : Number

默认值是 Infinity。

.isInstancedBufferGeometry : Boolean

只读标志,用于检查给定对象是否属于 InstancedBufferGeometry 类型。

方法

继承方法详见 BufferGeometry。

.copy ( source : InstancedBufferGeometry ) : this

将给定的 InstancedBufferGeometry 复制到此实例。

源代码

src/core/InstancedBufferGeometry.js


three.js InstancedBufferAttribute
three.js InstancedInterleavedBuffer
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

参考

核心 / BufferAttributes

渲染器 / WebXR

开发者参考

WebGL渲染器

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }