Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
e916cc8c
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,发现更多精彩内容 >>
提交
e916cc8c
编写于
8月 29, 2019
作者:
G
gogoend
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zh doc: Sync the zh doc list with en's.
上级
8dfeb298
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
94 addition
and
6 deletion
+94
-6
docs/api/zh/lights/shadows/PointLightShadow.html
docs/api/zh/lights/shadows/PointLightShadow.html
+83
-0
docs/list.js
docs/list.js
+11
-6
未找到文件。
docs/api/zh/lights/shadows/PointLightShadow.html
0 → 100644
浏览文件 @
e916cc8c
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
/>
<base
href=
"../../../../"
/>
<script
src=
"list.js"
></script>
<script
src=
"page.js"
></script>
<link
type=
"text/css"
rel=
"stylesheet"
href=
"page.css"
/>
</head>
<body>
<h1>
[name]
</h1>
<p
class=
"desc"
>
This is used internally by [page:PointLight PointLights] for calculating shadows
</p>
<h2>
Example
</h2>
<p>
<code>
//Create a WebGLRenderer and turn on shadows in the renderer
var renderer = new THREE.WebGLRenderer();
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap; // default THREE.PCFShadowMap
//Create a PointLight and turn on shadows for the light
var light = new THREE.PointLight( 0xffffff, 1, 100 );
light.position.set( 0, 10, 0 );
light.castShadow = true; // default false
scene.add( light );
//Set up shadow properties for the light
light.shadow.mapSize.width = 512; // default
light.shadow.mapSize.height = 512; // default
light.shadow.camera.near = 0.5; // default
light.shadow.camera.far = 500 // default
//Create a sphere that cast shadows (but does not receive them)
var sphereGeometry = new THREE.SphereBufferGeometry( 5, 32, 32 );
var sphereMaterial = new THREE.MeshStandardMaterial( { color: 0xff0000 } );
var sphere = new THREE.Mesh( sphereGeometry, sphereMaterial );
sphere.castShadow = true; //default is false
sphere.receiveShadow = false; //default
scene.add( sphere );
//Create a plane that receives shadows (but does not cast them)
var planeGeometry = new THREE.PlaneBufferGeometry( 20, 20, 32, 32 );
var planeMaterial = new THREE.MeshStandardMaterial( { color: 0x00ff00 } )
var plane = new THREE.Mesh( planeGeometry, planeMaterial );
plane.receiveShadow = true;
scene.add( plane );
//Create a helper for the shadow camera (optional)
var helper = new THREE.CameraHelper( light.shadow.camera );
scene.add( helper );
</code>
</p>
<h2>
Constructor
</h2>
<h3>
[name]( )
</h3>
<p>
Creates a new [name]. This is not intended to be called directly - it is called
internally by [page:PointLight].
</p>
<h2>
Properties
</h2>
<p>
See the base [page:LightShadow LightShadow] class for common properties.
</p>
<h2>
Methods
</h2>
<p>
See the base [page:LightShadow LightShadow] class for common methods.
</p>
<h2>
Source
</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/lights/[name].js src/lights/[name].js]
</p>
</body>
</html>
docs/list.js
浏览文件 @
e916cc8c
...
...
@@ -654,8 +654,9 @@ var list = {
},
"
灯光 / 阴影
"
:
{
"
DirectionalLightShadow
"
:
"
api/zh/lights/shadows/DirectionalLightShadow
"
,
"
LightShadow
"
:
"
api/zh/lights/shadows/LightShadow
"
,
"
PointLightShadow
"
:
"
api/zh/lights/shadows/PointLightShadow
"
,
"
DirectionalLightShadow
"
:
"
api/zh/lights/shadows/DirectionalLightShadow
"
,
"
SpotLightShadow
"
:
"
api/zh/lights/shadows/SpotLightShadow
"
},
...
...
@@ -801,7 +802,9 @@ var list = {
"
加载器
"
:
{
"
BabylonLoader
"
:
"
examples/zh/loaders/BabylonLoader
"
,
"
GLTFLoader
"
:
"
examples/zh/loaders/GLTFLoader
"
,
"
BasisTextureLoader
"
:
"
examples/zh/loaders/BasisTextureLoader
"
,
"
DRACOLoader
"
:
"
examples/zh/loaders/DRACOLoader
"
,
"
GLTFLoader
"
:
"
examples/zh/loaders/GLTFLoader
"
,
"
MMDLoader
"
:
"
examples/zh/loaders/MMDLoader
"
,
"
MTLLoader
"
:
"
examples/zh/loaders/MTLLoader
"
,
"
OBJLoader
"
:
"
examples/zh/loaders/OBJLoader
"
,
...
...
@@ -818,14 +821,15 @@ var list = {
"
Lensflare
"
:
"
examples/zh/objects/Lensflare
"
,
},
"
Post-Processing
"
:
{
"
后期处理
"
:
{
"
EffectComposer
"
:
"
examples/zh/postprocessing/EffectComposer
"
},
"
导出器
"
:
{
"
GLTFExporter
"
:
"
examples/zh/exporters/GLTFExporter
"
,
"
PLYExporter
"
:
"
examples/zh/exporters/PLYExporter
"
},
"
PLYExporter
"
:
"
examples/zh/exporters/PLYExporter
"
,
"
ColladaExporter
"
:
"
examples/zh/exporters/ColladaExporter
"
},
"
插件
"
:
{
"
LookupTable
"
:
"
examples/zh/Lut
"
,
...
...
@@ -848,7 +852,8 @@ var list = {
"
实用工具
"
:
{
"
BufferGeometryUtils
"
:
"
examples/zh/utils/BufferGeometryUtils
"
,
"
SceneUtils
"
:
"
examples/zh/utils/SceneUtils
"
"
SceneUtils
"
:
"
examples/zh/utils/SceneUtils
"
,
"
SkeletonUtils
"
:
"
examples/zh/utils/SkeletonUtils
"
}
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录