瀏覽代碼

Merge pull request #20340 from ycw/patch-4

set AmbientLight.castshadow to `false`
Mr.doob 4 年之前
父節點
當前提交
f43719d218

+ 0 - 5
docs/api/en/lights/AmbientLight.html

@@ -46,11 +46,6 @@
 				See the base [page:Light Light] class for common properties.
 		</p>
 
-		<h3>[property:Boolean castShadow]</h3>
-		<p>
-			This is set to *undefined* in the constructor as ambient lights cannot cast shadows.
-		</p>
-
 
 		<h2>Methods</h2>
 		<p>

+ 0 - 6
docs/api/en/lights/HemisphereLight.html

@@ -52,12 +52,6 @@
 			See the base [page:Light Light] class for common properties.
 		</p>
 
-		<h3>[property:Boolean castShadow]</h3>
-		<p>
-			This is set to *undefined* in the constructor as hemisphere lights cannot cast shadows.
-		</p>
-
-
 		<h3>[property:Float color]</h3>
 		<p>
 			The light's sky color, as passed in the constructor.

+ 0 - 4
src/lights/AmbientLight.d.ts

@@ -20,10 +20,6 @@ export class AmbientLight extends Light {
 	 */
 	type: string;
 
-	/**
-	 * @default undefined
-	 */
-	castShadow: boolean;
 	readonly isAmbientLight: true;
 
 }

+ 0 - 2
src/lights/AmbientLight.js

@@ -6,8 +6,6 @@ function AmbientLight( color, intensity ) {
 
 	this.type = 'AmbientLight';
 
-	this.castShadow = undefined;
-
 }
 
 AmbientLight.prototype = Object.assign( Object.create( Light.prototype ), {

+ 0 - 5
src/lights/HemisphereLight.d.ts

@@ -25,11 +25,6 @@ export class HemisphereLight extends Light {
 	 */
 	position: Vector3;
 
-	/**
-	 * @default undefined
-	 */
-	castShadow: boolean;
-
 	groundColor: Color;
 
 	readonly isHemisphereLight: true;

+ 0 - 2
src/lights/HemisphereLight.js

@@ -8,8 +8,6 @@ function HemisphereLight( skyColor, groundColor, intensity ) {
 
 	this.type = 'HemisphereLight';
 
-	this.castShadow = undefined;
-
 	this.position.copy( Object3D.DefaultUp );
 	this.updateMatrix();