KudanAR - iOS  1.6.0
ARSpotLight Class Reference

#import <ARSpotLight.h>

Inherits ARPointLight.

Properties

float innerSpotAngle
 
float outerSpotAngle
 
ARVector3spotDirection
 
- Properties inherited from ARPointLight
float attenuation
 
- Properties inherited from ARLight
ARVector3colour
 
float ambientCoefficient
 
- Properties inherited from ARNode
NSString * name
 
ARNodeparent
 
NSArray< ARNode * > * children
 
NSArray * descendants
 
ARVector3position
 
ARVector3scale
 
ARQuaternionorientation
 
ARMatrix4localTransform
 
ARMatrix4worldTransform
 
ARMatrix4fullTransform
 
ARQuaternionfullOrientation
 
ARQuaternionworldOrientation
 
ARVector3worldScale
 
ARVector3worldPosition
 
ARVector3fullPosition
 
ARNodeworld
 
NSUInteger childCount
 
BOOL visible
 

Additional Inherited Members

- Instance Methods inherited from ARLight
(instancetype) - initWithColour:
 
- Instance Methods inherited from ARNode
(void) - addChild:
 
(void) - addChildren:
 
(void) - removeChild:
 
(void) - removeAllChildren
 
(void) - remove
 
(ARNode *) - findChildWithName:
 
(void) - markWorldTransformAsDirty
 
(void) - translateByX:y:z:
 
(void) - translateByX:y:z:transformSpace:
 
(void) - translateByVector:
 
(void) - translateByVector:transformSpace:
 
(void) - scaleByUniform:
 
(void) - scaleByX:y:z:
 
(void) - scaleByVector:
 
(void) - rotateByDegrees:axisX:y:z:
 
(void) - rotateByRadians:axisX:y:z:
 
(void) - rotateByQuaternion:
 
(ARVector3 *) - positionToWorld:
 
(ARVector3 *) - positionToEye:
 
(ARQuaternion *) - orientationToWorld:
 
(ARQuaternion *) - orientationToEye:
 
(CGPoint) - viewPortFromNodePosition:
 
(void) - render
 
(void) - preRender
 
(void) - postRender
 
(void) - addTouchTarget:withAction:
 
(void) - didReceiveTouch
 
(ARVector3 *) - nodeFromViewPort:
 
- Class Methods inherited from ARNode
(instancetype) + nodeWithName:
 
- Protected Types inherited from ARNode
enum  TransformSpace { ARNodeTransformSpaceLocal, ARNodeTransformSpaceParent, ARNodeTransformSpaceWorld }
 

Detailed Description

An ARSpotLight represents a light in the scene that shines from a specific position along a specific direction with a cone-shaped area of effect. It can be translated and rotated just like any other node. It can be seen as a combination of an ARPointLight and an ARDirectionLight, as both the position and orientation of an ARSpotLight will affect the overall level of illumination on each object in the scene.

Property Documentation

◆ innerSpotAngle

- (float) innerSpotAngle
readwritenonatomicassign

The angle between the centre of the light direction vector and the side of the light cone at which the light intensity begins to decay, expressed in radians. Should be no more than M_PI / 2. Should not be greater than the outer spot angle.

◆ outerSpotAngle

- (float) outerSpotAngle
readwritenonatomicassign

The angle between the centre of the light direction vector and the side of the light cone at which the light intensity becomes 0, expressed in radians. Should be no more than M_PI / 2. Should not be less than the inner spot angle.

◆ spotDirection

- (ARVector3*) spotDirection
readwritenonatomicassign

The normalised direction that the spotlight is pointing in.


The documentation for this class was generated from the following file: