Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNLightMBS class.

SCNLightMBS.SampleDistributedShadowMaps as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Use the sample distribution of the main rendering to better fit the shadow frusta.

Defaults to false.
(Read and Write property)

SCNLightMBS.ShadowBias as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The amount of correction to apply to the shadow to prevent rendering artifacts.

Rendering shadows from a shadow map can result in artifacts where the shadow color does not appear on all pixels in a shadowed surface as intended. (This effect is typically called shadow acne.) This property specifies the error margin SceneKit uses to correct such artifacts.
The default value is 1.0.
(Read and Write property)

SCNLightMBS.ShadowCascadeCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Specifies the number of distinct shadow maps that will be computed for the receiver light.

Defaults to 1. Maximum is 4.
(Read and Write property)

SCNLightMBS.ShadowCascadeSplittingFactor as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Specifies a factor to interpolate between linear splitting (0) and logarithmic splitting (1).

Defaults to 0.15.
(Read and Write property)

SCNLightMBS.shadowColor as NSColorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The color of shadows cast by the light. Animatable.

The value of this property is an NSColorMBS object. SceneKit blends the light’s color with other colors in the rendered image to produce a shadow effect. The color’s opacity (alpha value) determines the intensity of the shadows. The default shadow color is black with 50% opacity.
You can animate changes to this property’s value. See Animating SceneKit Content.
(Read and Write property)

SCNLightMBS.ShadowMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The mode SceneKit uses to render shadows.

The default mode is SCNShadowModeForward in iOS and in macOS 10.10 or later. In OS X v10.9 or earlier, the default mode is SCNShadowModeDeferred.
(Read and Write property)

SCNLightMBS.ShadowRadius as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A number that specifies the amount of blurring around the edges of shadows cast by the light. Animatable.

SceneKit produces soft-edged shadows by rendering the silhouettes of geometry into a 2D shadow map and then using several weighted samples from the shadow map to determine the strength of the shadow at each pixel in the rendered scene. This property controls the radius of shadow map sampling. Lower numbers result in shadows with sharply defined, pixelated edges; higher numbers result in blurry shadows.
You can animate changes to this property’s value. See Animating SceneKit Content.
(Read and Write property)

SCNLightMBS.ShadowSampleCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The number of samples from the shadow map that SceneKit uses to render each pixel.

SceneKit produces soft-edged shadows by rendering the silhouettes of scene geometry into a 2D shadow map and then using several weighted samples from the shadow map to determine the strength of the shadow at each pixel in the rendered scene. This property controls the number of samples from the shadow map used to render each pixel. Higher numbers result in smoother edges; lower numbers increase rendering performance.
The default value is 16 in macOS and 1 on iOS.
(Read and Write property)

SCNLightMBS.spotInnerAngle as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The angle, in degrees, of the area fully lit by a spotlight. Animatable.

You define the cone-shaped illuminated area of a spotlight with a position and direction (from the node containing the light) and an angle specifying the cone’s width. Additionally, the illuminated area can smoothly transition from full illumination to no illumination. This property determines the width of the fully illuminated area.
The default value is 0.0, specifying that only the center of the area illuminated by the spotlight is lit at full intensity.
You can animate changes to this property’s value. See Animating SceneKit Content.
(Read and Write property)

Some examples using this property:

SCNLightMBS.spotOuterAngle as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 18.5 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The angle, in degrees, of the area partially lit by a spotlight. Animatable.

You define the cone-shaped illuminated area of a spotlight with a position and direction (from the node containing the light) and with an angle specifying the cone’s width. Additionally, the illuminated area can smoothly transition from full illumination to no illumination. This property determines the width of the transition area.
The default value is 45.0.
You can animate changes to this property’s value. See Animating SceneKit Content.
(Read and Write property)

Some examples using this property:

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


The biggest plugin in space...