Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fktz008
three.js
提交
87ab8857
T
three.js
项目概览
fktz008
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
提交
87ab8857
编写于
2月 22, 2022
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated builds.
上级
525bfedd
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
53 addition
and
61 deletion
+53
-61
build/three.cjs
build/three.cjs
+16
-19
build/three.js
build/three.js
+16
-19
build/three.min.js
build/three.min.js
+1
-1
build/three.module.js
build/three.module.js
+20
-22
未找到文件。
build/three.cjs
浏览文件 @
87ab8857
...
...
@@ -11591,16 +11591,6 @@ class OrthographicCamera extends Camera {
OrthographicCamera.prototype.isOrthographicCamera = true;
class RawShaderMaterial extends ShaderMaterial {
constructor(parameters) {
super(parameters);
this.type = 'RawShaderMaterial';
}
}
RawShaderMaterial.prototype.isRawShaderMaterial = true;
const LOD_MIN = 4; // The standard deviations (radians) associated with the extra mips. These are
// chosen to approximate a Trowbridge-Reitz distribution function times the
// geometric shadowing function. These sigma values squared must match the
...
...
@@ -12096,7 +12086,7 @@ function _setViewport(target, x, y, width, height) {
function _getBlurShader(lodMax, width, height) {
const weights = new Float32Array(MAX_SAMPLES);
const poleAxis = new Vector3(0, 1, 0);
const shaderMaterial = new
Raw
ShaderMaterial({
const shaderMaterial = new ShaderMaterial({
name: 'SphericalGaussianBlur',
defines: {
'n': MAX_SAMPLES,
...
...
@@ -12132,8 +12122,6 @@ function _getBlurShader(lodMax, width, height) {
/* glsl */
`
#extension GL_EXT_shader_texture_lod : enable
precision mediump float;
precision mediump int;
...
...
@@ -12201,7 +12189,7 @@ function _getBlurShader(lodMax, width, height) {
}
function _getEquirectShader() {
const shaderMaterial = new
Raw
ShaderMaterial({
const shaderMaterial = new ShaderMaterial({
name: 'EquirectangularToCubeUV',
uniforms: {
'envMap': {
...
...
@@ -12239,7 +12227,7 @@ function _getEquirectShader() {
}
function _getCubemapShader() {
const shaderMaterial = new
Raw
ShaderMaterial({
const shaderMaterial = new ShaderMaterial({
name: 'CubemapToCubeUV',
uniforms: {
'envMap': {
...
...
@@ -12284,8 +12272,6 @@ function _getCommonVertexShader() {
precision mediump float;
precision mediump int;
attribute vec3 position;
attribute vec2 uv;
attribute float faceIndex;
varying vec3 vOutputDirection;
...
...
@@ -26346,6 +26332,16 @@ class ShadowMaterial extends Material {
ShadowMaterial.prototype.isShadowMaterial = true;
class RawShaderMaterial extends ShaderMaterial {
constructor(parameters) {
super(parameters);
this.type = 'RawShaderMaterial';
}
}
RawShaderMaterial.prototype.isRawShaderMaterial = true;
/**
* parameters = {
* color: <hex>,
...
...
@@ -28618,9 +28614,10 @@ class FileLoader extends Loader {
// e.g. 'file://' or 'data://'. Handle as success.
if (response.status === 0) {
console.warn('THREE.FileLoader: HTTP Status 0 received.');
}
} // Workaround: Checking if response.body === undefined for Alipay browser #23548
if (typeof ReadableStream === 'undefined' || response.body.getReader === undefined) {
if (typeof ReadableStream === 'undefined' || response.body
=== undefined || response.body
.getReader === undefined) {
return response;
}
build/three.js
浏览文件 @
87ab8857
...
...
@@ -11593,16 +11593,6 @@
OrthographicCamera.prototype.isOrthographicCamera = true;
class RawShaderMaterial extends ShaderMaterial {
constructor(parameters) {
super(parameters);
this.type = 'RawShaderMaterial';
}
}
RawShaderMaterial.prototype.isRawShaderMaterial = true;
const LOD_MIN = 4; // The standard deviations (radians) associated with the extra mips. These are
// chosen to approximate a Trowbridge-Reitz distribution function times the
// geometric shadowing function. These sigma values squared must match the
...
...
@@ -12098,7 +12088,7 @@
function _getBlurShader(lodMax, width, height) {
const weights = new Float32Array(MAX_SAMPLES);
const poleAxis = new Vector3(0, 1, 0);
const shaderMaterial = new
Raw
ShaderMaterial({
const shaderMaterial = new ShaderMaterial({
name: 'SphericalGaussianBlur',
defines: {
'n': MAX_SAMPLES,
...
...
@@ -12134,8 +12124,6 @@
/* glsl */
`
#extension GL_EXT_shader_texture_lod : enable
precision mediump float;
precision mediump int;
...
...
@@ -12203,7 +12191,7 @@
}
function _getEquirectShader() {
const shaderMaterial = new
Raw
ShaderMaterial({
const shaderMaterial = new ShaderMaterial({
name: 'EquirectangularToCubeUV',
uniforms: {
'envMap': {
...
...
@@ -12241,7 +12229,7 @@
}
function _getCubemapShader() {
const shaderMaterial = new
Raw
ShaderMaterial({
const shaderMaterial = new ShaderMaterial({
name: 'CubemapToCubeUV',
uniforms: {
'envMap': {
...
...
@@ -12286,8 +12274,6 @@
precision mediump float;
precision mediump int;
attribute vec3 position;
attribute vec2 uv;
attribute float faceIndex;
varying vec3 vOutputDirection;
...
...
@@ -26348,6 +26334,16 @@
ShadowMaterial.prototype.isShadowMaterial = true;
class RawShaderMaterial extends ShaderMaterial {
constructor(parameters) {
super(parameters);
this.type = 'RawShaderMaterial';
}
}
RawShaderMaterial.prototype.isRawShaderMaterial = true;
/**
* parameters = {
* color: <hex>,
...
...
@@ -28620,9 +28616,10 @@
// e.g. 'file://' or 'data://'. Handle as success.
if (response.status === 0) {
console.warn('THREE.FileLoader: HTTP Status 0 received.');
}
} // Workaround: Checking if response.body === undefined for Alipay browser #23548
if (typeof ReadableStream === 'undefined' || response.body.getReader === undefined) {
if (typeof ReadableStream === 'undefined' || response.body
=== undefined || response.body
.getReader === undefined) {
return response;
}
build/three.min.js
浏览文件 @
87ab8857
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
87ab8857
...
...
@@ -15153,20 +15153,6 @@ class OrthographicCamera extends Camera {
OrthographicCamera.prototype.isOrthographicCamera = true;
class RawShaderMaterial extends ShaderMaterial {
constructor( parameters ) {
super( parameters );
this.type = 'RawShaderMaterial';
}
}
RawShaderMaterial.prototype.isRawShaderMaterial = true;
const LOD_MIN = 4;
// The standard deviations (radians) associated with the extra mips. These are
...
...
@@ -15798,7 +15784,7 @@ function _getBlurShader( lodMax, width, height ) {
const weights = new Float32Array( MAX_SAMPLES );
const poleAxis = new Vector3( 0, 1, 0 );
const shaderMaterial = new
Raw
ShaderMaterial( {
const shaderMaterial = new ShaderMaterial( {
name: 'SphericalGaussianBlur',
...
...
@@ -15823,8 +15809,6 @@ function _getBlurShader( lodMax, width, height ) {
fragmentShader: /* glsl */`
#extension GL_EXT_shader_texture_lod : enable
precision mediump float;
precision mediump int;
...
...
@@ -15897,7 +15881,7 @@ function _getBlurShader( lodMax, width, height ) {
function _getEquirectShader() {
const shaderMaterial = new
Raw
ShaderMaterial( {
const shaderMaterial = new ShaderMaterial( {
name: 'EquirectangularToCubeUV',
...
...
@@ -15940,7 +15924,7 @@ function _getEquirectShader() {
function _getCubemapShader() {
const shaderMaterial = new
Raw
ShaderMaterial( {
const shaderMaterial = new ShaderMaterial( {
name: 'CubemapToCubeUV',
...
...
@@ -15986,8 +15970,6 @@ function _getCommonVertexShader() {
precision mediump float;
precision mediump int;
attribute vec3 position;
attribute vec2 uv;
attribute float faceIndex;
varying vec3 vOutputDirection;
...
...
@@ -36373,6 +36355,20 @@ class ShadowMaterial extends Material {
ShadowMaterial.prototype.isShadowMaterial = true;
class RawShaderMaterial extends ShaderMaterial {
constructor( parameters ) {
super( parameters );
this.type = 'RawShaderMaterial';
}
}
RawShaderMaterial.prototype.isRawShaderMaterial = true;
/**
* parameters = {
* color: <hex>,
...
...
@@ -39520,7 +39516,9 @@ class FileLoader extends Loader {
}
if ( typeof ReadableStream === 'undefined' || response.body.getReader === undefined ) {
// Workaround: Checking if response.body === undefined for Alipay browser #23548
if ( typeof ReadableStream === 'undefined' || response.body === undefined || response.body.getReader === undefined ) {
return response;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录