You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
2.7 KiB
HTML
86 lines
2.7 KiB
HTML
2 months ago
|
<!DOCTYPE html>
|
||
|
<html lang="ar">
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<base href="../../../" />
|
||
|
<script src="page.js"></script>
|
||
|
<link type="text/css" rel="stylesheet" href="page.css" />
|
||
|
</head>
|
||
|
<body class="rtl">
|
||
|
[page:Object3D] →
|
||
|
|
||
|
<h1>[name]</h1>
|
||
|
|
||
|
<p class="desc">
|
||
|
يعرض هذا مساعد على شكل مخروط لـ [page:SpotLight].
|
||
|
</p>
|
||
|
|
||
|
<h2>مثال الكود</h2>
|
||
|
|
||
|
<code>
|
||
|
const spotLight = new THREE.SpotLight( 0xffffff );
|
||
|
spotLight.position.set( 10, 10, 10 );
|
||
|
scene.add( spotLight );
|
||
|
|
||
|
const spotLightHelper = new THREE.SpotLightHelper( spotLight );
|
||
|
scene.add( spotLightHelper );
|
||
|
</code>
|
||
|
|
||
|
<h2>أمثلة (Examples)</h2>
|
||
|
<p>[example:webgl_lights_spotlights WebGL/ lights / spotlights ]</p>
|
||
|
|
||
|
<h2>المنشئ (Constructor)</h2>
|
||
|
|
||
|
<h3>[name]( [param:SpotLight light], [param:Hex color] )</h3>
|
||
|
<p>
|
||
|
[page:SpotLight light] -- [page:SpotLight] المراد تصوره.
|
||
|
<br /><br />
|
||
|
|
||
|
[page:Hex color] -- (اختياري) إذا لم يتم تعيين هذا ، فسيأخذ المساعد
|
||
|
لون الضوء.
|
||
|
</p>
|
||
|
|
||
|
<h2>الخصائص (Properties)</h2>
|
||
|
<p>انظر الفئة الأساسية [page:Object3D] للخصائص المشتركة.</p>
|
||
|
|
||
|
<h3>[property:LineSegments cone]</h3>
|
||
|
<p>[page:LineSegments] المستخدمة لتصور الضوء.</p>
|
||
|
|
||
|
<h3>[property:SpotLight light]</h3>
|
||
|
<p>إشارة إلى [page:SpotLight] المرئي.</p>
|
||
|
|
||
|
<h3>[property:Object matrix]</h3>
|
||
|
<p>إشارة إلى [page:Object3D.matrixWorld matrixWorld] الخاص بـ spotLight.</p>
|
||
|
|
||
|
<h3>[property:Object matrixAutoUpdate]</h3>
|
||
|
<p>
|
||
|
انظر [page:Object3D.matrixAutoUpdate]. تعيين إلى `false` هنا كما يستخدم المساعد
|
||
|
[page:Object3D.matrixWorld matrixWorld] الخاص بـ spotLight.
|
||
|
</p>
|
||
|
|
||
|
<h3>[property:hex color]</h3>
|
||
|
<p>
|
||
|
معلمة اللون الممررة في المنشئ. الافتراضي هو `undefined`. إذا
|
||
|
تغير هذا ، سيتحدث لون المساعد في المرة التالية
|
||
|
[page:.update update] يتم استدعاؤه.
|
||
|
</p>
|
||
|
|
||
|
<h2>الطرق (Methods)</h2>
|
||
|
<p>انظر الفئة الأساسية [page:Object3D] للطرق المشتركة.</p>
|
||
|
|
||
|
<h3>[method:undefined dispose]()</h3>
|
||
|
<p>
|
||
|
تحرير الموارد ذات الصلة بوحدة معالجة الرسومات التي تم تخصيصها من قبل هذه الحالة. استدعاء هذه
|
||
|
الطريقة كلما لم يعد يستخدم هذا الحال في تطبيقك.
|
||
|
</p>
|
||
|
|
||
|
<h3>[method:undefined update]()</h3>
|
||
|
<p>تحديث مساعد الضوء.</p>
|
||
|
|
||
|
<h2>المصدر (Source)</h2>
|
||
|
|
||
|
<p>
|
||
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
||
|
</p>
|
||
|
</body>
|
||
|
</html>
|