|
@@ -10,9 +10,9 @@
|
|
<body>
|
|
<body>
|
|
[page:BufferGeometry] →
|
|
[page:BufferGeometry] →
|
|
|
|
|
|
- <h1>[name]</h1>
|
|
|
|
|
|
+ <h1>贴花几何体([name])</h1>
|
|
|
|
|
|
- <p class="desc">[name] can be used to create a decal mesh that serves different kinds of purposes e.g. adding unique details to models, performing dynamic visual environmental changes or covering seams.</p>
|
|
|
|
|
|
+ <p class="desc">[name] 可被用于创建贴花网格物体,以达到不同的目的,例如:为模型增加独特的细节、进行动态的视觉环境改变或覆盖接缝。</p>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
|
@@ -30,7 +30,7 @@
|
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
- <h2>Example</h2>
|
|
|
|
|
|
+ <h2>示例</h2>
|
|
|
|
|
|
<p>[example:webgl_decals decals ]</p>
|
|
<p>[example:webgl_decals decals ]</p>
|
|
|
|
|
|
@@ -40,17 +40,17 @@
|
|
scene.add( mesh );
|
|
scene.add( mesh );
|
|
</code>
|
|
</code>
|
|
|
|
|
|
- <h2>Constructor</h2>
|
|
|
|
|
|
+ <h2>构造函数</h2>
|
|
|
|
|
|
<h3>[name]( [param:Mesh mesh], [param:Vector3 position], [param:Euler orientation], [param:Vector3 size] )</h3>
|
|
<h3>[name]( [param:Mesh mesh], [param:Vector3 position], [param:Euler orientation], [param:Vector3 size] )</h3>
|
|
<p>
|
|
<p>
|
|
- mesh — Any mesh object.<br />
|
|
|
|
- position — Position of the decal projector.<br />
|
|
|
|
- orientation — Orientation of the decal projector.<br />
|
|
|
|
- size — Size of the decal projector.
|
|
|
|
|
|
+ mesh — 一个网格对象。<br />
|
|
|
|
+ position — 贴花投影器的位置。<br />
|
|
|
|
+ orientation — 贴花投影器的朝向。<br />
|
|
|
|
+ size — 贴画投影器的尺寸。
|
|
</p>
|
|
</p>
|
|
|
|
|
|
- <h2>Source</h2>
|
|
|
|
|
|
+ <h2>源代码</h2>
|
|
|
|
|
|
<p>
|
|
<p>
|
|
[link:https://github.com/mrdoob/three.js/blob/master/examples/js/geometries/DecalGeometry.js examples/js/geometries/DecalGeometry.js]
|
|
[link:https://github.com/mrdoob/three.js/blob/master/examples/js/geometries/DecalGeometry.js examples/js/geometries/DecalGeometry.js]
|