Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
47864b1f
T
three.js
项目概览
Ablesons
/
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,发现更多精彩内容 >>
提交
47864b1f
编写于
1月 27, 2014
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
7e21e0b6
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
110 addition
and
112 deletion
+110
-112
build/three.js
build/three.js
+32
-34
build/three.min.js
build/three.min.js
+78
-78
未找到文件。
build/three.js
浏览文件 @
47864b1f
...
...
@@ -248,11 +248,15 @@ THREE.RGBA_PVRTC_2BPPV1_Format = 2103;
* @author mrdoob / http://mrdoob.com/
*/
THREE.Color = function (
value
) {
THREE.Color = function (
color
) {
if (
value !== undefined ) this.set( value );
if (
arguments.length === 3 ) {
return this;
return this.setRGB( arguments[ 0 ], arguments[ 1 ], arguments[ 2 ] );
}
return this.set( color )
};
...
...
@@ -10047,11 +10051,11 @@ THREE.PerspectiveCamera.prototype.clone = function () {
* @author alteredq / http://alteredqualia.com/
*/
THREE.Light = function (
hex
) {
THREE.Light = function (
color
) {
THREE.Object3D.call( this );
this.color = new THREE.Color(
hex
);
this.color = new THREE.Color(
color
);
};
...
...
@@ -10073,9 +10077,9 @@ THREE.Light.prototype.clone = function ( light ) {
* @author mrdoob / http://mrdoob.com/
*/
THREE.AmbientLight = function (
hex
) {
THREE.AmbientLight = function (
color
) {
THREE.Light.call( this,
hex
);
THREE.Light.call( this,
color
);
};
...
...
@@ -10096,9 +10100,9 @@ THREE.AmbientLight.prototype.clone = function () {
* @author alteredq / http://alteredqualia.com/
*/
THREE.AreaLight = function (
hex
, intensity ) {
THREE.AreaLight = function (
color
, intensity ) {
THREE.Light.call( this,
hex
);
THREE.Light.call( this,
color
);
this.normal = new THREE.Vector3( 0, -1, 0 );
this.right = new THREE.Vector3( 1, 0, 0 );
...
...
@@ -10122,9 +10126,9 @@ THREE.AreaLight.prototype = Object.create( THREE.Light.prototype );
* @author alteredq / http://alteredqualia.com/
*/
THREE.DirectionalLight = function (
hex
, intensity ) {
THREE.DirectionalLight = function (
color
, intensity ) {
THREE.Light.call( this,
hex
);
THREE.Light.call( this,
color
);
this.position.set( 0, 1, 0 );
this.target = new THREE.Object3D();
...
...
@@ -10200,13 +10204,13 @@ THREE.DirectionalLight.prototype.clone = function () {
* @author alteredq / http://alteredqualia.com/
*/
THREE.HemisphereLight = function ( skyColor
Hex, groundColorHex
, intensity ) {
THREE.HemisphereLight = function ( skyColor
, groundColor
, intensity ) {
THREE.Light.call( this, skyColor
Hex
);
THREE.Light.call( this, skyColor );
this.position.set( 0, 100, 0 );
this.groundColor = new THREE.Color( groundColor
Hex
);
this.groundColor = new THREE.Color( groundColor );
this.intensity = ( intensity !== undefined ) ? intensity : 1;
};
...
...
@@ -10230,9 +10234,9 @@ THREE.HemisphereLight.prototype.clone = function () {
* @author mrdoob / http://mrdoob.com/
*/
THREE.PointLight = function (
hex
, intensity, distance ) {
THREE.PointLight = function (
color
, intensity, distance ) {
THREE.Light.call( this,
hex
);
THREE.Light.call( this,
color
);
this.intensity = ( intensity !== undefined ) ? intensity : 1;
this.distance = ( distance !== undefined ) ? distance : 0;
...
...
@@ -10258,9 +10262,9 @@ THREE.PointLight.prototype.clone = function () {
* @author alteredq / http://alteredqualia.com/
*/
THREE.SpotLight = function (
hex
, intensity, distance, angle, exponent ) {
THREE.SpotLight = function (
color
, intensity, distance, angle, exponent ) {
THREE.Light.call( this,
hex
);
THREE.Light.call( this,
color
);
this.position.set( 0, 1, 0 );
this.target = new THREE.Object3D();
...
...
@@ -15415,11 +15419,11 @@ THREE.Scene.prototype.clone = function ( object ) {
* @author alteredq / http://alteredqualia.com/
*/
THREE.Fog = function (
hex
, near, far ) {
THREE.Fog = function (
color
, near, far ) {
this.name = '';
this.color = new THREE.Color(
hex
);
this.color = new THREE.Color(
color
);
this.near = ( near !== undefined ) ? near : 1;
this.far = ( far !== undefined ) ? far : 1000;
...
...
@@ -15437,11 +15441,11 @@ THREE.Fog.prototype.clone = function () {
* @author alteredq / http://alteredqualia.com/
*/
THREE.FogExp2 = function (
hex
, density ) {
THREE.FogExp2 = function (
color
, density ) {
this.name = '';
this.color = new THREE.Color(
hex
);
this.color = new THREE.Color(
color
);
this.density = ( density !== undefined ) ? density : 0.00025;
};
...
...
@@ -15617,15 +15621,11 @@ THREE.CanvasRenderer = function ( parameters ) {
}
_clipBox.set(
new THREE.Vector2( - _canvasWidthHalf, - _canvasHeightHalf ),
new THREE.Vector2( _canvasWidthHalf, _canvasHeightHalf )
);
_clipBox.min.set( - _canvasWidthHalf, - _canvasHeightHalf ),
_clipBox.max.set( _canvasWidthHalf, _canvasHeightHalf );
_clearBox.set(
new THREE.Vector2( - _canvasWidthHalf, - _canvasHeightHalf ),
new THREE.Vector2( _canvasWidthHalf, _canvasHeightHalf )
);
_clearBox.min.set( - _canvasWidthHalf, - _canvasHeightHalf );
_clearBox.max.set( _canvasWidthHalf, _canvasHeightHalf );
_contextGlobalAlpha = 1;
_contextGlobalCompositeOperation = 0;
...
...
@@ -15642,10 +15642,8 @@ THREE.CanvasRenderer = function ( parameters ) {
_clearColor.set( color );
_clearAlpha = alpha !== undefined ? alpha : 1;
_clearBox.set(
new THREE.Vector2( - _canvasWidthHalf, - _canvasHeightHalf ),
new THREE.Vector2( _canvasWidthHalf, _canvasHeightHalf )
);
_clearBox.min.set( - _canvasWidthHalf, - _canvasHeightHalf );
_clearBox.max.set( _canvasWidthHalf, _canvasHeightHalf );
};
...
...
build/three.min.js
浏览文件 @
47864b1f
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录