提交 4d0c82ae 编写于 作者: M Mr.doob

Updated builds.

上级 578f6218
......@@ -16459,6 +16459,8 @@
function WebGLObjects( gl, geometries, infoRender ) {
var updateList = {};
function update( object ) {
var frame = infoRender.frame;
......@@ -16468,7 +16470,7 @@
// Update once per frame
if ( buffergeometry.__frame !== frame ) {
if ( updateList[ buffergeometry.id ] !== frame ) {
if ( geometry.isGeometry ) {
......@@ -16478,7 +16480,7 @@
geometries.update( buffergeometry );
buffergeometry.__frame = frame;
updateList[ buffergeometry.id ] = frame;
}
......@@ -16486,9 +16488,16 @@
}
function clear() {
updateList = {};
}
return {
update: update
update: update,
clear: clear
};
......@@ -20160,6 +20169,7 @@
setDefaultGLState();
properties.clear();
objects.clear();
}
......@@ -22776,6 +22786,7 @@
SpriteMaterial.prototype = Object.create( Material.prototype );
SpriteMaterial.prototype.constructor = SpriteMaterial;
SpriteMaterial.prototype.isSpriteMaterial = true;
SpriteMaterial.prototype.copy = function ( source ) {
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -16453,6 +16453,8 @@ function WebGLLights() {
function WebGLObjects( gl, geometries, infoRender ) {
var updateList = {};
function update( object ) {
var frame = infoRender.frame;
......@@ -16462,7 +16464,7 @@ function WebGLObjects( gl, geometries, infoRender ) {
// Update once per frame
if ( buffergeometry.__frame !== frame ) {
if ( updateList[ buffergeometry.id ] !== frame ) {
if ( geometry.isGeometry ) {
......@@ -16472,7 +16474,7 @@ function WebGLObjects( gl, geometries, infoRender ) {
geometries.update( buffergeometry );
buffergeometry.__frame = frame;
updateList[ buffergeometry.id ] = frame;
}
......@@ -16480,9 +16482,16 @@ function WebGLObjects( gl, geometries, infoRender ) {
}
function clear() {
updateList = {};
}
return {
update: update
update: update,
clear: clear
};
......@@ -20154,6 +20163,7 @@ function WebGLRenderer( parameters ) {
setDefaultGLState();
properties.clear();
objects.clear();
}
......@@ -22770,6 +22780,7 @@ function SpriteMaterial( parameters ) {
SpriteMaterial.prototype = Object.create( Material.prototype );
SpriteMaterial.prototype.constructor = SpriteMaterial;
SpriteMaterial.prototype.isSpriteMaterial = true;
SpriteMaterial.prototype.copy = function ( source ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册