提交 738eb538 编写于 作者: M Mr.doob

Updated builds.

上级 9b8ff141
......@@ -20156,7 +20156,7 @@ THREE.WebGLRenderer = function ( parameters ) {
var type, size;
if ( index.array instanceof Uint32Array ) {
if ( index.array instanceof Uint32Array && extensions.get( 'OES_element_index_uint' ) ) {
type = _gl.UNSIGNED_INT;
size = 4;
......@@ -23456,15 +23456,9 @@ THREE.WebGLProgram = ( function () {
}
function programArrayToString( previousValue, currentValue, index, array ) {
if ( currentValue !== '' && currentValue !== undefined && currentValue !== null ) {
return previousValue + currentValue + '\n';
function filterEmptyLine( string ) {
}
return previousValue;
return string !== '';
}
......@@ -23678,9 +23672,9 @@ THREE.WebGLProgram = ( function () {
'#endif',
''
'\n'
].reduce( programArrayToString, '' );
].filter( filterEmptyLine ).join( '\n' );
prefix_fragment = [
......@@ -23736,9 +23730,10 @@ THREE.WebGLProgram = ( function () {
'uniform mat4 viewMatrix;',
'uniform vec3 cameraPosition;',
''
].reduce( programArrayToString, '' );
'\n'
].filter( filterEmptyLine ).join( '\n' );
}
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册