KudanAR - iOS  1.6.0
ARLight Class Reference

#import <ARLight.h>

Inherits ARNode.

Inherited by ARDirectionalLight, and ARPointLight.

Instance Methods

(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:
 

Properties

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

- Class Methods inherited from ARNode
(instancetype) + nodeWithName:
 
- Protected Types inherited from ARNode
enum  TransformSpace { ARNodeTransformSpaceLocal, ARNodeTransformSpaceParent, ARNodeTransformSpaceWorld }
 

Detailed Description

The base light class from which all light classes derive. If an ARLight is used, it will behave like a point light, but it will not have any attenuation, so the light will not fade over distance.

Example of use:

ARNode *node = [[ARNode alloc] init];
ARLight *light = [[ARLight alloc] initWithColour:[ARVector3 vectorWithValuesX:0.1 Y:0.2 Z:0.3];
[node addChild:light];
light.position = [ARVector3 vectorWithValuesX:0.0 Y:0.0 Z:0.0];
light.ambientCoefficient = 0.5;

Method Documentation

◆ initWithColour:

- (id) initWithColour: (ARVector3 *)  colour

Initialises an instance of ARLight using the given RGB values in the form of an ARVector3.

Example of use:

ARLight *light = [[ARLight alloc] initWithColour:[ARVector3 vectorWithValuesX:0.3 Y:0.4 Z:0.5];
Parameters
colourARVector3 which holds R,G,B values of 0..1

Property Documentation

◆ ambientCoefficient

- (float) ambientCoefficient
readwritenonatomicassign

The minimum amount of illumination added to all objects in the scene regardless of incident light.

◆ colour

- (ARVector3*) colour
readwritenonatomicassign

An ARVector3 representing the colour component of this light. Each component (X, Y, Z) of this vector should be in the range 0..1.


The documentation for this class was generated from the following files:
ARNode::position
ARVector3 * position
Definition: ARNode.h:68
ARNode
Definition: ARNode.h:19
ARLight
Definition: ARLight.h:19
ARVector3
Definition: ARVector3.h:11
ARLight::ambientCoefficient
float ambientCoefficient
Definition: ARLight.h:28