Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
0df6403e
T
three.js
项目概览
车家大少爷
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0df6403e
编写于
6月 07, 2017
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
f68d7f1c
变更
3
展开全部
显示空白变更内容
内联
并排
Showing
3 changed file
with
122 addition
and
126 deletion
+122
-126
build/three.js
build/three.js
+10
-12
build/three.min.js
build/three.min.js
+102
-102
build/three.module.js
build/three.module.js
+10
-12
未找到文件。
build/three.js
浏览文件 @
0df6403e
...
@@ -2164,7 +2164,7 @@
...
@@ -2164,7 +2164,7 @@
setFromEuler: function ( euler, update ) {
setFromEuler: function ( euler, update ) {
if (
( euler && euler.isEuler ) === false
) {
if (
! ( euler && euler.isEuler )
) {
throw new Error( 'THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.' );
throw new Error( 'THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.' );
...
@@ -2810,7 +2810,7 @@
...
@@ -2810,7 +2810,7 @@
return function applyEuler( euler ) {
return function applyEuler( euler ) {
if (
( euler && euler.isEuler ) === false
) {
if (
! ( euler && euler.isEuler )
) {
console.error( 'THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.' );
console.error( 'THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.' );
...
@@ -3450,7 +3450,7 @@
...
@@ -3450,7 +3450,7 @@
makeRotationFromEuler: function ( euler ) {
makeRotationFromEuler: function ( euler ) {
if (
( euler && euler.isEuler ) === false
) {
if (
! ( euler && euler.isEuler )
) {
console.error( 'THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
console.error( 'THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
...
@@ -9995,10 +9995,8 @@
...
@@ -9995,10 +9995,8 @@
applyMatrix4: function ( matrix4 ) {
applyMatrix4: function ( matrix4 ) {
this.direction.add( this.origin ).applyMatrix4( matrix4 );
this.origin.applyMatrix4( matrix4 );
this.origin.applyMatrix4( matrix4 );
this.direction.sub( this.origin );
this.direction.transformDirection( matrix4 );
this.direction.normalize();
return this;
return this;
...
@@ -13887,7 +13885,7 @@
...
@@ -13887,7 +13885,7 @@
addAttribute: function ( name, attribute ) {
addAttribute: function ( name, attribute ) {
if (
( attribute && attribute.isBufferAttribute ) === false && ( attribute && attribute.isInterleavedBufferAttribute ) === false
) {
if (
! ( attribute && attribute.isBufferAttribute ) && ! ( attribute && attribute.isInterleavedBufferAttribute )
) {
console.warn( 'THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).' );
console.warn( 'THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).' );
...
@@ -14597,7 +14595,7 @@
...
@@ -14597,7 +14595,7 @@
merge: function ( geometry, offset ) {
merge: function ( geometry, offset ) {
if (
( geometry && geometry.isBufferGeometry ) === false
) {
if (
! ( geometry && geometry.isBufferGeometry )
) {
console.error( 'THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.', geometry );
console.error( 'THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.', geometry );
return;
return;
...
@@ -20947,7 +20945,7 @@
...
@@ -20947,7 +20945,7 @@
this.render = function ( scene, camera, renderTarget, forceClear ) {
this.render = function ( scene, camera, renderTarget, forceClear ) {
if (
camera !== undefined && camera.isCamera !== true
) {
if (
! ( camera && camera.isCamera )
) {
console.error( 'THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.' );
console.error( 'THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.' );
return;
return;
...
@@ -22554,7 +22552,7 @@
...
@@ -22554,7 +22552,7 @@
this.readRenderTargetPixels = function ( renderTarget, x, y, width, height, buffer ) {
this.readRenderTargetPixels = function ( renderTarget, x, y, width, height, buffer ) {
if (
( renderTarget && renderTarget.isWebGLRenderTarget ) === false
) {
if (
! ( renderTarget && renderTarget.isWebGLRenderTarget )
) {
console.error( 'THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.' );
console.error( 'THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.' );
return;
return;
...
@@ -27207,7 +27205,7 @@
...
@@ -27207,7 +27205,7 @@
var font = parameters.font;
var font = parameters.font;
if (
( font && font.isFont ) === false
) {
if (
! ( font && font.isFont )
) {
console.error( 'THREE.TextGeometry: font parameter is not an instance of THREE.Font.' );
console.error( 'THREE.TextGeometry: font parameter is not an instance of THREE.Font.' );
return new Geometry();
return new Geometry();
...
...
build/three.min.js
浏览文件 @
0df6403e
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
0df6403e
...
@@ -2158,7 +2158,7 @@ Object.assign( Quaternion.prototype, {
...
@@ -2158,7 +2158,7 @@ Object.assign( Quaternion.prototype, {
setFromEuler: function ( euler, update ) {
setFromEuler: function ( euler, update ) {
if (
( euler && euler.isEuler ) === false
) {
if (
! ( euler && euler.isEuler )
) {
throw new Error( 'THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.' );
throw new Error( 'THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.' );
...
@@ -2804,7 +2804,7 @@ Object.assign( Vector3.prototype, {
...
@@ -2804,7 +2804,7 @@ Object.assign( Vector3.prototype, {
return function applyEuler( euler ) {
return function applyEuler( euler ) {
if (
( euler && euler.isEuler ) === false
) {
if (
! ( euler && euler.isEuler )
) {
console.error( 'THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.' );
console.error( 'THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.' );
...
@@ -3444,7 +3444,7 @@ Object.assign( Matrix4.prototype, {
...
@@ -3444,7 +3444,7 @@ Object.assign( Matrix4.prototype, {
makeRotationFromEuler: function ( euler ) {
makeRotationFromEuler: function ( euler ) {
if (
( euler && euler.isEuler ) === false
) {
if (
! ( euler && euler.isEuler )
) {
console.error( 'THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
console.error( 'THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
...
@@ -9989,10 +9989,8 @@ Object.assign( Ray.prototype, {
...
@@ -9989,10 +9989,8 @@ Object.assign( Ray.prototype, {
applyMatrix4: function ( matrix4 ) {
applyMatrix4: function ( matrix4 ) {
this.direction.add( this.origin ).applyMatrix4( matrix4 );
this.origin.applyMatrix4( matrix4 );
this.origin.applyMatrix4( matrix4 );
this.direction.sub( this.origin );
this.direction.transformDirection( matrix4 );
this.direction.normalize();
return this;
return this;
...
@@ -13881,7 +13879,7 @@ Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
...
@@ -13881,7 +13879,7 @@ Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
addAttribute: function ( name, attribute ) {
addAttribute: function ( name, attribute ) {
if (
( attribute && attribute.isBufferAttribute ) === false && ( attribute && attribute.isInterleavedBufferAttribute ) === false
) {
if (
! ( attribute && attribute.isBufferAttribute ) && ! ( attribute && attribute.isInterleavedBufferAttribute )
) {
console.warn( 'THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).' );
console.warn( 'THREE.BufferGeometry: .addAttribute() now expects ( name, attribute ).' );
...
@@ -14591,7 +14589,7 @@ Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
...
@@ -14591,7 +14589,7 @@ Object.assign( BufferGeometry.prototype, EventDispatcher.prototype, {
merge: function ( geometry, offset ) {
merge: function ( geometry, offset ) {
if (
( geometry && geometry.isBufferGeometry ) === false
) {
if (
! ( geometry && geometry.isBufferGeometry )
) {
console.error( 'THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.', geometry );
console.error( 'THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.', geometry );
return;
return;
...
@@ -20941,7 +20939,7 @@ function WebGLRenderer( parameters ) {
...
@@ -20941,7 +20939,7 @@ function WebGLRenderer( parameters ) {
this.render = function ( scene, camera, renderTarget, forceClear ) {
this.render = function ( scene, camera, renderTarget, forceClear ) {
if (
camera !== undefined && camera.isCamera !== true
) {
if (
! ( camera && camera.isCamera )
) {
console.error( 'THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.' );
console.error( 'THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.' );
return;
return;
...
@@ -22548,7 +22546,7 @@ function WebGLRenderer( parameters ) {
...
@@ -22548,7 +22546,7 @@ function WebGLRenderer( parameters ) {
this.readRenderTargetPixels = function ( renderTarget, x, y, width, height, buffer ) {
this.readRenderTargetPixels = function ( renderTarget, x, y, width, height, buffer ) {
if (
( renderTarget && renderTarget.isWebGLRenderTarget ) === false
) {
if (
! ( renderTarget && renderTarget.isWebGLRenderTarget )
) {
console.error( 'THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.' );
console.error( 'THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.' );
return;
return;
...
@@ -27201,7 +27199,7 @@ function TextBufferGeometry( text, parameters ) {
...
@@ -27201,7 +27199,7 @@ function TextBufferGeometry( text, parameters ) {
var font = parameters.font;
var font = parameters.font;
if (
( font && font.isFont ) === false
) {
if (
! ( font && font.isFont )
) {
console.error( 'THREE.TextGeometry: font parameter is not an instance of THREE.Font.' );
console.error( 'THREE.TextGeometry: font parameter is not an instance of THREE.Font.' );
return new Geometry();
return new Geometry();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录