Creates an instance of light component.
Object3 d attr of abstract object3d component
Object attr of abstract subscribe component
Change list of abstract subscribe component
Need update of abstract subscribe component
Maximum angle of light dispersion from its direction whose upper bound is Math.PI/2(360).
Whether the object gets rendered into shadow map. Default is false.
Numeric value of the RGB component of the color. Default is 0xffffff.
Content children of abstract object3d component
Debug this Object
The amount the light dims along the distance of the light. Default is 1.
Maximum range of the light. Default is 0 (no limit).
Enabled or Not
When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object. If set to false
the object gets rendered every frame even if it is not in the frustum of the camera. Default is true
.
The geometry of mesh
Content children of mesh component
hexadecimal color of the ground. Default is 0xffffff.
height of the light. Default is 10.
The Id of abstract subscribe component
Numeric value of the light's strength/intensity. Default is 1.
The material of mesh
The material of mesh is array
Content children of abstract object3d component
When this is set, it calculates the matrix of position, (rotation or quaternion) and scale every frame and also recalculates the matrixWorld property. Default is Object3D.DefaultMatrixAutoUpdate (true).
The name of the object (doesn't need to be unique). Default is an empty string.
The Object3d of abstract object3d component
Content children of abstract object3d component
Will be called when before destory. The argument will be the loaded self
Will be called when load completes. The argument will be the loaded self
The override params
The Parent of abstract subscribe component
Parent object3d of abstract object3d component
Percent of the spotlight cone that is attenuated due to penumbra. Takes values between zero and 1. Default is zero.
Whether the material receives shadows. Default is false.
The renderTarget of light component
The renderer of light component
An instance of SphericalHarmonics3.
Shadow map bias, how much to add or subtract from the normalized depth when deciding whether a surface is in shadow. The default is 0. Very tiny adjustments here (in the order of 0.0001) may help reduce artefacts in shadows
Camera frustum bottom plane.
Camera frustum far plane. Default is 2000. Must be greater than the current value of Camera.near plane.
Camera frustum vertical field of view, from bottom to top of view, in degrees. Default is 50.
Camera frustum left plane.
The shadowCameraNear of light component
Camera frustum right plane.
Camera frustum top plane.
Gets or sets the zoom factor of the camera. Default is 1.
Used to focus the shadow camera. The camera's field of view is set as a percentage of the spotlight's field-of-view. Range is [0, 1]. Default is 1.0.
A Vector2 defining the width and height of the shadow map.
A Vector2 defining the width and height of the shadow map. vector2.height
A Vector2 defining the width and height of the shadow map. vector2.width
Setting this to values greater than 1 will blur the edges of the shadow. High values will cause unwanted banding effects in the shadows - a greater LightShadow.mapSize will allow for a higher value to be used here before these effects become visible. If WebGLRenderer.shadowMap.type is set to PCFSoftShadowMap, radius has no effect and it is recommended to increase softness by decreasing LightShadow.mapSize instead. Note that this has no effect if the WebGLRenderer.shadowMap.type is set to BasicShadowMap.
hexadecimal color of the sky. Default is 0xffffff.
Subscribe type of abstract subscribe component
The target of light component
The targetX of light component
The targetY of light component
The targetZ of light component
The texture of light component
Tween animation params
The type of light
Three Type | Value String(case insensitive) |
---|---|
THREE.PointLight | PointLight, Point |
THREE.RectAreaLight | RectAreaLight, RectArea |
THREE.SpotLight | SpotLight, Spot |
THREE.DirectionalLight | DirectionalLight, Directional |
THREE.HemisphereLight | HemisphereLight, Hemisphere |
THREE.LightProbe | LightProbe, Probe |
THREE.AmbientLight | AmbientLight, Ambient |
An object that can be used to store custom data about the Object3D. It should not hold references to functions as these will not be cloned.
Object gets rendered if true. Default is true.
width of the light. Default is 10.
Export this Object to window global variables
Sets need update
Adds changes
Adds position
position
Adds rotation
rotation
Applys changes
Applys changes3d
Calls on load
Checks changes
changes
Clears changes
Consoles log
Consoles log time
Destroys local component
Disposes abstract subscribe component
Gets changes
changes
Gets geometry
geometry
Gets id
id
Gets material one
material one
Gets materials
materials
Gets materials multi
materials multi
Gets name
name
Gets object
object
Gets subscribe
subscribe
Gets tag attribute
Gets tag attribute object3d
Gets three renderer
three renderer
Gets timeout 특정 시간후에 이벤트 발생시키기
timeout
Gets user data
Gets visible
true if visible
Inits local component
local component
Determines whether id euals is
true if id euals
A callback method that is invoked immediately after Angular has completed initialization of all of the directive's content. It is invoked only once when the directive is instantiated.
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated. default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.
The changed properties.
A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
Resets tween
Runs subscribe next
Sets lookat
lookat
Sets object
Sets position
position
Sets rotation
rotation
Sets scale
scale
Sets scale scalar
scale scalar
Sets subscribe next
Sets subscribe type
Sets tween
Sets tween target
Sets user data
Sets visible
Subscribes list query
Subscribes list query change
Subscribes refer
Subscribes refer list
subscribe refer
subscribe refer list
subscription
subscription
Updates input params
Generated using TypeDoc
The Light component.
See the ngx3js docs page for details. See the ngx light page for a live demo.
THREE.Light