Files
apt-nl-map/static/Magic4/js/three.js-dev/docs/api/zh/scenes/Fog.html
2024-12-04 10:21:04 +08:00

53 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>雾([name]</h1>
<p class="desc">这个类中的参数定义了线性雾。也就是说,雾的密度是随着距离线性增大的。</p>
<h2>构造器</h2>
<h3>[name]( [param:Integer color], [param:Float near], [param:Float far] )</h3>
<p>颜色参数传入[page:Color]构造函数中来设置颜色属性。颜色可以是一个十六进制的整型数或者是CSS风格的字符串。</p>
<h2>属性</h2>
<h3>[property:String name]</h3>
<p>对象的名称,可选、不必唯一。默认值是一个空字符串。</p>
<h3>[property:Color color]</h3>
<p>雾的颜色。比如说,如果将其设置为黑色,远处的物体将被渲染成黑色。</p>
<h3>[property:Float near]</h3>
<p>开始应用雾的最小距离。距离小于活动摄像机“near”个单位的物体将不会被雾所影响。</p>
<p>默认值是1。</p>
<h3>[property:Float far]</h3>
<p>结束计算、应用雾的最大距离距离大于活动摄像机“far”个单位的物体将不会被雾所影响。</p>
<p>默认值是1000。</p>
<h2>方法</h2>
<h3>[method:Fog clone]()</h3>
<p>返回一个具有和当前雾参数相同的新的Fog实例。</p>
<h3>[method:Fog toJSON]()</h3>
<p>以JSON格式返回Fog的数据。</p>
<h2>源代码</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</p>
</body>
</html>