SCNLightMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

SCNLightMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A light source that can be attached to a node to illuminate the scene.

You illuminate your scene by attaching lights to SCNNode objects using their light property.

You set a light’s type using its type property. Depending on a light’s type, its position and direction may affect its behavior—you control the light’s position and direction through the node that the light is attached to. The direction of a light, if applicable to its type, is along the negative z-axis of its node’s local coordinate system.

A light’s other properties affect how it illuminates a scene. All lights have a color property, which interacts with SCNMaterial objects to produce the pixel colors in a rendered scene. Other properties, such as attenuation, shadowing, and spot angle, can affect the behavior of certain types of lights.

The number and type of lights in a scene is a key factor in SceneKit’s rendering performance. For efficient rendering, follow these tips:


Requires MacOS 10.8 or newer.

Shadow Modes

Constant Value Description
kShadowModeDeferred 1 SceneKit renders shadows in a postprocessing pass.
In the mode, SceneKit blends shadows into the final image after the main rendering pass, so shadows can be of any color.
kShadowModeForward 0 SceneKit renders shadows during lighting computations. more
kShadowModeModulated 2 SceneKit renders shadows by projecting the light’s gobo image. The light does not illuminate the scene. more

This class has no sub classes.

Some properties using for this class:

Some examples using this class:

Blog Entries

Xojo Developer Magazine

Release notes


The items on this page are in the following plugins: MBS Mac64bit Plugin.


SCNLevelOfDetailMBS   -   SCNLookAtConstraintMBS


💬 Ask a question or report a problem