Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNMaterialMBS class.

SCNMaterialMBS.ambient as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that manages the material’s response to ambient lighting.

The ambient property specifies the amount of ambient light to reflect. This property has no visual impact on scenes that have no ambient light. Setting the ambient has no effect if locksAmbientWithDiffuse is set to true.
(Read only property)

Some examples using this property:

SCNMaterialMBS.ambientOcclusion as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that provides color values to be multiplied with the ambient light affecting the material.

Use this property to assign an ambient occlusion texture map to a surface. This property has no effect if there is no ambient light in the scene. If this property is not nil, SceneKit ignores the ambient property.
When using physically-based shading (see SCNLightingModelPhysicallyBased), ambient occlusion approximates large-scale surface details that obscure global illumination.
(Read only property)

SCNMaterialMBS.blendMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The mode that determines how pixel colors rendered using this material blend with other pixel colors in the rendering target.

With the default blend mode of SCNBlendModeAlpha, materials blend according to their alpha (opacity) values—a pixel rendered with a higher alpha value appears more opaque than one with a lower alpha value. Change this property to create special effects. For example, the SCNBlendModeAdd mode can make objects appear to glow.
(Read and Write property)

SCNMaterialMBS.colorBufferWriteMask as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Determines whether the receiver writes to the color buffer when rendered.

Defaults to SCNColorMaskAll.
(Read and Write property)

SCNMaterialMBS.cullMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The mode determining which faces of a surface SceneKit renders. Animatable.

The vertex data and normal vectors in a geometry designate which side of each polygon is to be considered its front face, and the geometry’s orientation with respect to the camera determines which front surfaces are currently visible. Typically, back-facing surfaces are found only on the interior of a closed geometry, obscured by front-facing surfaces, so rendering these surfaces has a performance cost but no visible effect.
This property’s default value is SCNCullBack, specifying that SceneKit should cull, or not render, back-facing surfaces. You can change this property’s value to cause SceneKit to render only the back surfaces of a material instead. See SCNCullMode for available values.
You can animate changes to this property’s value. See Animating SceneKit Content. Animating this property fades between the results of rendering with each state
(Read and Write property)

SCNMaterialMBS.diffuse as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that manages the material’s diffuse response to lighting.

see also
https://developer.apple.com/documentation/scenekit/scnmaterial/1462589-diffuse
(Read only property)

Some examples using this property:

SCNMaterialMBS.displacement as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The displacement property specifies how vertex are translated in tangent space.

Pass a grayscale image for a simple 'elevation' or rgb image for a vector displacement.
(Read only property)

SCNMaterialMBS.DoubleSided as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A Boolean value that determines whether SceneKit should render both front and back faces of a surface. Animatable.

When this property’s value is false (the default), SceneKit renders a surface using the material from one side. The vertex data and normal vectors in a geometry designate which side of each polygon is to be considered its front face, and the geometry’s orientation with respect to the camera determines which front surfaces are currently visible.
If you change this property’s value to true, SceneKit renders both the front and back surfaces of every polygon. SceneKit assumes the surface normals a back face to be the negative of the front face’s normal vector.
You can animate changes to this property’s value. See Animating SceneKit Content. Animating this property fades between the results of rendering with each state
(Read and Write property)

SCNMaterialMBS.emission as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that defines the color emitted by each point on a surface.

The emission property specifies the amount of light the material emits. This emission does not light up other surfaces in the scene.
(Read only property)

SCNMaterialMBS.fillMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Determines of to how to rasterize the receiver's primitives.

Defaults to SCNFillModeFill.
(Read and Write property)

SCNMaterialMBS.fresnelExponent as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A factor affecting the material’s reflectivity. Animatable.

The Fresnel exponent of a material interacts with its reflective property to determine the intensity of reflections in a surface based on its angle relative to the viewer. A higher Fresnel exponent increases the visibility of reflections when the material is viewed from a shallow angle.
(Read and Write property)

SCNMaterialMBS.lightingModelName as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The lighting formula that SceneKit uses to render the material.

SceneKit provides several different lighting models, each of which combines information from a material’s visual properties with the lights and other contents of a scene. For details on how each lighting model affects rendering, see Lighting Models. For details on the contribution from each visual property, see Visual Properties for Special Effects.
(Read and Write property)

SCNMaterialMBS.LitPerPixel as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A Boolean value that determines whether SceneKit performs lighting calculations per vertex or per pixel. Animatable.

When this property’s value is true (the default), SceneKit performs lighting calculations independently for each rendered pixel. This approach provides better rendering quality, but can adversely impact rendering performance.
If you change this property’s value to false, SceneKit performs lighting calculations for each vertex in a geometry, and allows the GPU to interpolate lighting results across the pixels in between vertices. Depending on the shape and vertex count of a geometry’s surface and the material properties being rendered, this approach may improve rendering performance without much noticeable impact on visual quality.
You can animate changes to this property’s value. See Animating SceneKit Content. Animating this property fades between the results of rendering with each state.
(Read and Write property)

SCNMaterialMBS.locksAmbientWithDiffuse as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A Boolean value that determines whether the material responds identically to both ambient and diffuse lighting. Animatable.

Makes the ambient property automatically match the diffuse property. Defaults to false on 10.9 and before, defaults to true otherwise. Animatable.
(Read and Write property)

SCNMaterialMBS.metalness as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that provides color values to determine how metallic the material’s surface appears.

This property measures only the total intensity of color values; texture contents are best defined in grayscale.
This property generally approximates aspects of a physical surface—such as index of refraction, tendency to produce sharp reflections, and tendency to produce Fresnel reflections at grazing angles—that together produce an overall metallic or nonmetallic (also called dielectric) appearance. Lower values (darker colors) cause the material to appear more like a dielectric surface. Higher values (brighter colors) cause the surface to appear more metallic.
This property applies only when the material’s lightingModelName value is SCNLightingModelPhysicallyBased.
(Read only property)

SCNMaterialMBS.multiply as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that provides color values that are multiplied with pixels in a material after all other shading is complete.

The multiply property specifies a color or an image used to multiply the output fragments with. The computed fragments are multiplied with the multiply value to produce the final fragments. This property may be used for shadow maps, to fade out or tint 3d objects.
(Read only property)

SCNMaterialMBS.name as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A name associated with the material.

You can provide a descriptive name for a material to make managing your scene graph easier. Materials loaded from a scene file may have names assigned by an artist using a 3D authoring tool. Use the SCNSceneSourceMBS class to examine materials in a scene file without loading its scene graph.

Material names are saved when you export a scene to a file using its writeToURL method, and appear in the Xcode scene editor.
(Read and Write property)

SCNMaterialMBS.normal as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that defines the nominal orientation of the surface at each point for use in lighting.

see also
https://developer.apple.com/documentation/scenekit/scnmaterial/1462542-normal
(Read only property)

Some examples using this property:

SCNMaterialMBS.readsFromDepthBuffer as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Determines whether the receiver reads from the depth buffer when rendered.

Defaults to true.
(Read and Write property)

SCNMaterialMBS.reflective as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that defines the reflected color for each point on a surface.

The reflective property specifies the reflectivity of the surface. The surface will not actually reflect other objects in the scene. This property may be used as a sphere mapping to reflect a precomputed environment.
(Read only property)

SCNMaterialMBS.roughness as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that provides color values to determine the apparent smoothness of the surface.

This property measures only the total intensity of color values; texture contents are best defined in grayscale.
This property approximates the level of microscopic detail—for example tiny bumps and cracks—in a surface. By approximating these “microfacets” as a single term, this property helps produce lighting calculations that resemble the energy-conserving laws of real-world physics, resulting in more realistic variation between matte and shiny surfaces. Lower values (darker colors) cause the material to appear shiny, with well-defined specular highlights. Higher values (brighter colors) cause specular highlights to spread out and the diffuse color of the material to become more retroreflective.
This property applies only when the material’s lightingModelName value is SCNLightingModelPhysicallyBased.
(Read only property)

SCNMaterialMBS.selfIllumination as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that provides color values representing the global illumination of the surface.

Self-illumination applies to all materials, but is especially useful for those using physically-based shading (see SCNLightingModelPhysicallyBased). Physically-based materials work best with environment-based lighting (see the SCNSceneMBS property lightingEnvironment), but for some materials it can be useful to let a surface itself define part of its lighting—for example, an object whose position obscures it from the “sky” that provides the main lighting environment. When you assign contents to this property, they override the environmental lighting contribution to diffuse shading, but environmental lighting still contributes to specular effects.
(Read only property)

SCNMaterialMBS.shininess as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The sharpness of specular highlights. Animatable.

The shininess of a material interacts with its specular property and the lighting in a scene to produce bright highlights on a surface. A higher value produces more sharply defined highlights, making a surface appear more smooth and glossy.
(Read and Write property)

SCNMaterialMBS.specular as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that manages the material’s specular response to lighting.

The specular property specifies the amount of light to reflect in a mirror-like manner. The specular intensity increases when the point of view lines up with the direction of the reflected light.
(Read only property)

SCNMaterialMBS.transparency as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The uniform transparency of the material. Animatable.

SceneKit determines the total opacity of each rendered pixel in a surface by multiplying the color from the material’s transparent property by the value of this property. Then, the material’s transparencyMode property determines how pixels from the material are blended into the scene.
You can also uniformly adjust the opacity of all content attached to a node using its opacity property.
(Read and Write property)

SCNMaterialMBS.transparencyMode as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The mode SceneKit uses to calculate transparency for the material.

The default transparency mode is SCNTransparencyModeAOne. See SCNTransparencyMode for available values and their effects.
(Read and Write property)

SCNMaterialMBS.transparent as SCNMaterialPropertyMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
An object that determines the opacity of each point in a material.

The transparent property specifies the transparent areas of the material.
(Read only property)

SCNMaterialMBS.writesToDepthBuffer as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
A Boolean value that determines whether SceneKit produces depth information when rendering the material.

Determines whether the receiver writes to the depth buffer when rendered. Defaults to true.
(Read and Write property)

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


The biggest plugin in space...