KudanAR - iOS  1.6.0
ARDirectionalLight Class Reference

#import <ARDirectionalLight.h>

Inherits ARLight.

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 }
 
- 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
 

Detailed Description

An ARDirectionalLight represents a light source of constant intensity emitted from a specific direction. This light behaves as if all rays created are parallel and emitted from a distance infinitely far away. Affects objects that use ARLightMaterial. Direction of light source is set by changing the light's orientation variable.

Example of use:

ARNode *node = [[ARNode alloc] init];
ARDirectionalLight *directionalLight = [[ARDirectionalLight alloc] initWithColour:[ARVector3 vectorWithValuesX:0.1 y:0.2 z:0.3]];
[directionalLight rotateByDegrees:45 axisX:1 y:0 z:0];

The documentation for this class was generated from the following file:
ARNode
Definition: ARNode.h:19
ARDirectionalLight
Definition: ARDirectionalLight.h:16
ARVector3
Definition: ARVector3.h:11