Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
167486b6
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,发现更多精彩内容 >>
提交
167486b6
编写于
11月 16, 2012
作者:
A
alteredq
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Removed forgotten commented out code.
上级
8736f3b3
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
284 addition
and
356 deletion
+284
-356
build/three.js
build/three.js
+4
-48
build/three.min.js
build/three.min.js
+280
-280
src/renderers/WebGLRenderer.js
src/renderers/WebGLRenderer.js
+0
-28
未找到文件。
build/three.js
浏览文件 @
167486b6
...
...
@@ -20375,32 +20375,6 @@ THREE.WebGLRenderer = function ( parameters ) {
var attributes = material.program.attributes;
/*
if ( attributes.position >= 0 ) _gl.enableVertexAttribArray( attributes.position );
if ( attributes.color >= 0 ) _gl.enableVertexAttribArray( attributes.color );
if ( attributes.normal >= 0 ) _gl.enableVertexAttribArray( attributes.normal );
if ( attributes.tangent >= 0 ) _gl.enableVertexAttribArray( attributes.tangent );
if ( attributes.lineDistance >= 0 ) _gl.enableVertexAttribArray( attributes.lineDistance );
if ( material.skinning &&
attributes.skinIndex >= 0 && attributes.skinWeight >= 0 ) {
_gl.enableVertexAttribArray( attributes.skinIndex );
_gl.enableVertexAttribArray( attributes.skinWeight );
}
if ( material.attributes ) {
for ( a in material.attributes ) {
if ( attributes[ a ] !== undefined && attributes[ a ] >= 0 ) _gl.enableVertexAttribArray( attributes[ a ] );
}
}
*/
if ( material.morphTargets ) {
material.numSupportedMorphTargets = 0;
...
...
@@ -20413,7 +20387,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( attributes[ id ] >= 0 ) {
//_gl.enableVertexAttribArray( attributes[ id ] );
material.numSupportedMorphTargets ++;
}
...
...
@@ -20434,7 +20407,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( attributes[ id ] >= 0 ) {
//_gl.enableVertexAttribArray( attributes[ id ] );
material.numSupportedMorphNormals ++;
}
...
...
@@ -33770,8 +33742,6 @@ THREE.LensFlarePlugin = function ( ) {
_lensFlare.uniforms.rotation = _gl.getUniformLocation( _lensFlare.program, "rotation" );
_lensFlare.uniforms.screenPosition = _gl.getUniformLocation( _lensFlare.program, "screenPosition" );
_lensFlare.attributesEnabled = false;
};
...
...
@@ -33810,15 +33780,9 @@ THREE.LensFlarePlugin = function ( ) {
_gl.useProgram( _lensFlare.program );
if ( ! _lensFlare.attributesEnabled ) {
_gl.enableVertexAttribArray( _lensFlare.attributes.vertex );
_gl.enableVertexAttribArray( _lensFlare.attributes.uv );
_lensFlare.attributesEnabled = true;
}
// loop through all lens flares to update their occlusion and positions
// setup gl and common used attribs/unforms
...
...
@@ -34552,8 +34516,6 @@ THREE.SpritePlugin = function ( ) {
_sprite.uniforms.fogFar = _gl.getUniformLocation( _sprite.program, "fogFar" );
_sprite.uniforms.fogColor = _gl.getUniformLocation( _sprite.program, "fogColor" );
_sprite.attributesEnabled = false;
};
this.render = function ( scene, camera, viewportWidth, viewportHeight ) {
...
...
@@ -34577,15 +34539,9 @@ THREE.SpritePlugin = function ( ) {
_gl.useProgram( _sprite.program );
if ( ! _sprite.attributesEnabled ) {
_gl.enableVertexAttribArray( attributes.position );
_gl.enableVertexAttribArray( attributes.uv );
_sprite.attributesEnabled = true;
}
_gl.disable( _gl.CULL_FACE );
_gl.enable( _gl.BLEND );
_gl.depthMask( true );
...
...
build/three.min.js
浏览文件 @
167486b6
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
src/renderers/WebGLRenderer.js
浏览文件 @
167486b6
...
...
@@ -4853,32 +4853,6 @@ THREE.WebGLRenderer = function ( parameters ) {
var
attributes
=
material
.
program
.
attributes
;
/*
if ( attributes.position >= 0 ) _gl.enableVertexAttribArray( attributes.position );
if ( attributes.color >= 0 ) _gl.enableVertexAttribArray( attributes.color );
if ( attributes.normal >= 0 ) _gl.enableVertexAttribArray( attributes.normal );
if ( attributes.tangent >= 0 ) _gl.enableVertexAttribArray( attributes.tangent );
if ( attributes.lineDistance >= 0 ) _gl.enableVertexAttribArray( attributes.lineDistance );
if ( material.skinning &&
attributes.skinIndex >= 0 && attributes.skinWeight >= 0 ) {
_gl.enableVertexAttribArray( attributes.skinIndex );
_gl.enableVertexAttribArray( attributes.skinWeight );
}
if ( material.attributes ) {
for ( a in material.attributes ) {
if ( attributes[ a ] !== undefined && attributes[ a ] >= 0 ) _gl.enableVertexAttribArray( attributes[ a ] );
}
}
*/
if
(
material
.
morphTargets
)
{
material
.
numSupportedMorphTargets
=
0
;
...
...
@@ -4891,7 +4865,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if
(
attributes
[
id
]
>=
0
)
{
//_gl.enableVertexAttribArray( attributes[ id ] );
material
.
numSupportedMorphTargets
++
;
}
...
...
@@ -4912,7 +4885,6 @@ THREE.WebGLRenderer = function ( parameters ) {
if
(
attributes
[
id
]
>=
0
)
{
//_gl.enableVertexAttribArray( attributes[ id ] );
material
.
numSupportedMorphNormals
++
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录