public class SCNLight extends NSObject implements SCNAnimatable, NSCopying, NSSecureCoding, SCNTechniqueSupport
SCNLight represents a light that can be attached to a SCNNode.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
SCNLight(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
void |
addAnimationForKey(SCNAnimation animation,
java.lang.String key)
addAnimation:forKey:
|
void |
addAnimationPlayerForKey(SCNAnimationPlayer player,
java.lang.String key)
addAnimationPlayer:forKey:
|
static SCNLight |
alloc() |
static SCNLight |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
CAAnimation |
animationForKey(java.lang.String key)
animationForKey:
|
NSArray<java.lang.String> |
animationKeys()
[@property] animationKeys
|
SCNAnimationPlayer |
animationPlayerForKey(java.lang.String key)
animationPlayerForKey:
|
NSArray<? extends NSValue> |
areaPolygonVertices()
[@property] areaPolygonVertices
|
long |
areaType()
[@property] areaType
|
double |
attenuationEndDistance()
[@property] attenuationEndDistance
|
double |
attenuationFalloffExponent()
[@property] attenuationFalloffExponent
|
double |
attenuationStartDistance()
[@property] attenuationStartDistance
|
boolean |
automaticallyAdjustsShadowProjection()
[@property] automaticallyAdjustsShadowProjection
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
boolean |
castsShadow()
[@property] castsShadow
|
long |
categoryBitMask()
[@property] categoryBitMask
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
color()
[@property] color
|
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
boolean |
doubleSided()
[@property] doubleSided
|
boolean |
drawsArea()
[@property] drawsArea
|
void |
encodeWithCoder(NSCoder coder) |
boolean |
forcesBackFaceCasters()
[@property] forcesBackFaceCasters
|
SCNMaterialProperty |
gobo()
[@property] gobo
|
static long |
hash_static() |
NSURL |
IESProfileURL()
[@property] IESProfileURL
|
SCNLight |
init() |
SCNLight |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
double |
intensity()
[@property] intensity
|
boolean |
isAnimationForKeyPaused(java.lang.String key)
isAnimationForKeyPaused:
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static SCNLight |
light()
light
|
static SCNLight |
lightWithMDLLight(MDLLight mdlLight) |
double |
maximumShadowDistance()
[@property] maximumShadowDistance
|
java.lang.String |
name()
[@property] name
|
static SCNLight |
new_objc() |
double |
orthographicScale()
[@property] orthographicScale
|
boolean |
parallaxCorrectionEnabled()
Whether parallax correction is enabled for the reflection probe.
|
void |
pauseAnimationForKey(java.lang.String key)
pauseAnimationForKey:
|
SCNMaterialProperty |
probeEnvironment()
Only applies to a probe of type SCNLightProbeTypeRadiance.
|
long |
probeType()
Type of the probe.
|
long |
probeUpdateType()
Update type of the probe.
|
void |
removeAllAnimations()
removeAllAnimations
|
void |
removeAllAnimationsWithBlendOutDuration(double duration)
removeAllAnimationsWithBlendOutDuration
|
void |
removeAnimationForKey(java.lang.String key)
removeAnimationForKey
|
void |
removeAnimationForKeyBlendOutDuration(java.lang.String key,
double duration)
removeAnimationForKey:blendOutDuration:
|
void |
removeAnimationForKeyFadeOutDuration(java.lang.String key,
double duration)
removeAnimationForKey:fadeOutDuration:
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
resumeAnimationForKey(java.lang.String key)
resumeAnimationForKey:
|
boolean |
sampleDistributedShadowMaps()
[@property] sampleDistributedShadowMaps
|
void |
setAreaPolygonVertices(NSArray<? extends NSValue> value)
[@property] areaPolygonVertices
|
void |
setAreaType(long value)
[@property] areaType
|
void |
setAttenuationEndDistance(double value)
[@property] attenuationEndDistance
|
void |
setAttenuationFalloffExponent(double value)
[@property] attenuationFalloffExponent
|
void |
setAttenuationStartDistance(double value)
[@property] attenuationStartDistance
|
void |
setAutomaticallyAdjustsShadowProjection(boolean value)
[@property] automaticallyAdjustsShadowProjection
|
void |
setCastsShadow(boolean value)
[@property] castsShadow
|
void |
setCategoryBitMask(long value)
[@property] categoryBitMask
|
void |
setColor(java.lang.Object value)
[@property] color
|
void |
setDoubleSided(boolean value)
[@property] doubleSided
|
void |
setDrawsArea(boolean value)
[@property] drawsArea
|
void |
setForcesBackFaceCasters(boolean value)
[@property] forcesBackFaceCasters
|
void |
setIESProfileURL(NSURL value)
[@property] IESProfileURL
|
void |
setIntensity(double value)
[@property] intensity
|
void |
setMaximumShadowDistance(double value)
[@property] maximumShadowDistance
|
void |
setName(java.lang.String value)
[@property] name
|
void |
setOrthographicScale(double value)
[@property] orthographicScale
|
void |
setParallaxCorrectionEnabled(boolean value)
Whether parallax correction is enabled for the reflection probe.
|
void |
setProbeType(long value)
Type of the probe.
|
void |
setProbeUpdateType(long value)
Update type of the probe.
|
void |
setSampleDistributedShadowMaps(boolean value)
[@property] sampleDistributedShadowMaps
|
void |
setShadowBias(double value)
[@property] shadowBias
|
void |
setShadowCascadeCount(long value)
[@property] shadowCascadeCount
|
void |
setShadowCascadeSplittingFactor(double value)
[@property] shadowCascadeSplittingFactor
|
void |
setShadowColor(java.lang.Object value)
[@property] shadowColor
|
void |
setShadowMapSize(CGSize value)
[@property] shadowMapSize
|
void |
setShadowMode(long value)
[@property] shadowMode
|
void |
setShadowRadius(double value)
[@property] shadowRadius
|
void |
setShadowSampleCount(long value)
[@property] shadowSampleCount
|
void |
setSpeedForAnimationKey(double speed,
java.lang.String key)
setSpeed:forAnimationKey:
|
void |
setSpotInnerAngle(double value)
[@property] spotInnerAngle
|
void |
setSpotOuterAngle(double value)
[@property] spotOuterAngle
|
void |
setTechnique(SCNTechnique value)
[@property] technique
|
void |
setTemperature(double value)
[@property] temperature
|
void |
setType(java.lang.String value)
[@property] type
|
static void |
setVersion_static(long aVersion) |
void |
setZFar(double value)
[@property] zFar
|
void |
setZNear(double value)
[@property] zNear
|
double |
shadowBias()
[@property] shadowBias
|
long |
shadowCascadeCount()
[@property] shadowCascadeCount
|
double |
shadowCascadeSplittingFactor()
[@property] shadowCascadeSplittingFactor
|
java.lang.Object |
shadowColor()
[@property] shadowColor
|
CGSize |
shadowMapSize()
[@property] shadowMapSize
|
long |
shadowMode()
[@property] shadowMode
|
double |
shadowRadius()
[@property] shadowRadius
|
long |
shadowSampleCount()
[@property] shadowSampleCount
|
NSData |
sphericalHarmonicsCoefficients()
[@property] sphericalHarmonicsCoefficients
|
double |
spotInnerAngle()
[@property] spotInnerAngle
|
double |
spotOuterAngle()
[@property] spotOuterAngle
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
SCNTechnique |
technique()
[@property] technique
|
double |
temperature()
[@property] temperature
|
java.lang.String |
type()
[@property] type
|
static long |
version_static() |
double |
zFar()
[@property] zFar
|
double |
zNear()
[@property] zNear
|
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static SCNLight alloc()
public static SCNLight allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static SCNLight light()
Creates and returns a light instance.
public static SCNLight new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public NSURL IESProfileURL()
Specifies the IES file from which the shape, direction, and intensity of illumination is determined. Defaults to nil.
public void addAnimationForKey(SCNAnimation animation, java.lang.String key)
SCNAnimatableAdds and runs an animation
Only SCNAnimation (preferred), CABasicAnimation, CAKeyframeAnimation and CAAnimationGroup are supported. The animation starts playing right away. The animation is automatically removed on completion unless if removedOnCompletion is explicitly set to NO.
addAnimationForKey in interface SCNAnimatableanimation - Added animation.key - May be any string such that only one animation per unique key is added per animatable object. removedOnCompletion] public CAAnimation animationForKey(java.lang.String key)
SCNAnimatableReturns the animation with the given identifier
This will return nil if no such animation exists. Attempting to modify any properties of the returned object will result in undefined behavior.
animationForKey in interface SCNAnimatablekey - The identifier for the animation to retrieve.public NSArray<java.lang.String> animationKeys()
SCNAnimatableReturns an array containing the keys of all animations currently attached to the receiver.
animationKeys in interface SCNAnimatablepublic double attenuationEndDistance()
The distance at which the attenuation ends (Omni or Spot light types only). Animatable. Defaults to 0.
public double attenuationFalloffExponent()
Specifies the attenuation between the start and end attenuation distances. 0 means a constant attenuation, 1 a linear attenuation and 2 a quadratic attenuation, but any positive value will work (Omni or Spot light types only). Animatable. Defaults to 2.
public double attenuationStartDistance()
The distance at which the attenuation starts (Omni or Spot light types only). Animatable. Defaults to 0.
public boolean castsShadow()
Determines whether the receiver casts a shadow. Defaults to NO.
Shadows are only supported by spot and directional lights.
public long categoryBitMask()
Determines the node categories that will be lit by the receiver. Defaults to all bit set.
public java.lang.Object color()
Specifies the receiver's color (NSColor or CGColorRef). Animatable. Defaults to white.
The initial value is a NSColor. The renderer multiplies the light's color is by the color derived from the light's temperature.
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic SCNMaterialProperty gobo()
Specifies the gobo (or "cookie") of the light, used to control the shape of emitted light.
Gobos are only supported by spot lights.
public SCNLight initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic double intensity()
Specifies the receiver's intensity.
This intensity is used to modulate the light color. When used with a physically-based material, this corresponds to the luminous flux of the light, expressed in lumens (lm). Defaults to 1000. Animatable.
public boolean isAnimationForKeyPaused(java.lang.String key)
SCNAnimatableReturns whether the animation for the specified identifier is paused.
isAnimationForKeyPaused in interface SCNAnimatablekey - The identifier for the animation to query.public java.lang.String name()
Determines the name of the receiver.
public double orthographicScale()
Specifies the orthographic scale used to render from the directional light into the shadow map. Defaults to 1.
This is only applicable for directional lights.
public void pauseAnimationForKey(java.lang.String key)
SCNAnimatablePause the animation with the given identifier.
pauseAnimationForKey in interface SCNAnimatablekey - The identifier for the animation to pause.public void removeAllAnimations()
SCNAnimatableRemove all animations.
removeAllAnimations in interface SCNAnimatablepublic void removeAnimationForKey(java.lang.String key)
SCNAnimatableRemove the animation with the given identifier.
removeAnimationForKey in interface SCNAnimatablekey - The identifier for the animation to remove.public void removeAnimationForKeyFadeOutDuration(java.lang.String key,
double duration)
SCNAnimatableSmoothly remove the animation with the given identifier.
removeAnimationForKeyFadeOutDuration in interface SCNAnimatablekey - The identifier for the animation to remove.duration - The fade out duration used to remove the animation.public void resumeAnimationForKey(java.lang.String key)
SCNAnimatableResume the animation with the given identifier.
resumeAnimationForKey in interface SCNAnimatablekey - The identifier for the animation to resume.public void setAttenuationEndDistance(double value)
The distance at which the attenuation ends (Omni or Spot light types only). Animatable. Defaults to 0.
public void setAttenuationFalloffExponent(double value)
Specifies the attenuation between the start and end attenuation distances. 0 means a constant attenuation, 1 a linear attenuation and 2 a quadratic attenuation, but any positive value will work (Omni or Spot light types only). Animatable. Defaults to 2.
public void setAttenuationStartDistance(double value)
The distance at which the attenuation starts (Omni or Spot light types only). Animatable. Defaults to 0.
public void setCastsShadow(boolean value)
Determines whether the receiver casts a shadow. Defaults to NO.
Shadows are only supported by spot and directional lights.
public void setCategoryBitMask(long value)
Determines the node categories that will be lit by the receiver. Defaults to all bit set.
public void setColor(java.lang.Object value)
Specifies the receiver's color (NSColor or CGColorRef). Animatable. Defaults to white.
The initial value is a NSColor. The renderer multiplies the light's color is by the color derived from the light's temperature.
public void setIESProfileURL(NSURL value)
Specifies the IES file from which the shape, direction, and intensity of illumination is determined. Defaults to nil.
public void setIntensity(double value)
Specifies the receiver's intensity.
This intensity is used to modulate the light color. When used with a physically-based material, this corresponds to the luminous flux of the light, expressed in lumens (lm). Defaults to 1000. Animatable.
public void setName(java.lang.String value)
Determines the name of the receiver.
public void setOrthographicScale(double value)
Specifies the orthographic scale used to render from the directional light into the shadow map. Defaults to 1.
This is only applicable for directional lights.
public void setShadowBias(double value)
Specifies the correction to apply to the shadow map to correct acne artefacts. It is multiplied by an implementation-specific value to create a constant depth offset. Defaults to 1.0
public void setShadowColor(java.lang.Object value)
Specifies the color (CGColorRef or NSColor) of the shadow casted by the receiver. Defaults to black. Animatable.
On iOS 9 or earlier and macOS 10.11 or earlier, this defaults to black 50% transparent.
public void setShadowMapSize(CGSize value)
Specifies the size of the shadow map.
The larger the shadow map is the more precise the shadows are but the slower the computation is. If set to {0,0} the size of the shadow map is automatically chosen. Defaults to {0,0}.
public void setShadowMode(long value)
Specified the mode to use to cast shadows. See above for the available modes and their description. Defaults to SCNShadowModeForward.
public void setShadowRadius(double value)
Specifies the sample radius used to render the receiver’s shadow. Default value is 3.0. Animatable.
public void setShadowSampleCount(long value)
Specifies the number of sample per fragment to compute the shadow map. Defaults to 0.
On macOS 10.11 or earlier, the shadowSampleCount defaults to 16. On iOS 9 or earlier it defaults to 1.0. On macOS 10.12, iOS 10 and greater, when the shadowSampleCount is set to 0, a default sample count is chosen depending on the platform.
public void setSpeedForAnimationKey(double speed,
java.lang.String key)
SCNAnimatableUpdate the animation speed of the animation with the given identifier.
setSpeedForAnimationKey in interface SCNAnimatablespeed - The new speed of the animation.key - The identifier for the animation to update.public void setSpotInnerAngle(double value)
The angle in degrees between the spot direction and the lit element below which the lighting is at full strength. Animatable. Defaults to 0.
public void setSpotOuterAngle(double value)
The angle in degrees between the spot direction and the lit element after which the lighting is at zero strength. Animatable. Defaults to 45 degrees.
public void setTechnique(SCNTechnique value)
SCNTechniqueSupportSpecifies the technique of the receiver. Defaults to nil.
setTechnique in interface SCNTechniqueSupportpublic void setTemperature(double value)
Specifies the receiver's temperature.
This specifies the temperature of the light in Kelvin. The renderer multiplies the light's color by the color derived from the light's temperature. Defaults to 6500 (pure white). Animatable.
public void setType(java.lang.String value)
Specifies the receiver's type.
Defaults to SCNLightTypeOmni on iOS 8 and later, and on macOS 10.10 and later (otherwise defaults to SCNLightTypeAmbient).
public void setZFar(double value)
Specifies the maximal distance between the light and a visible surface to cast shadow on. If a surface is further from the light than this maximal distance, then the surface won't be shadowed. Animatable. Defaults to 100.
public void setZNear(double value)
Specifies the minimal distance between the light and the surface to cast shadow on. If a surface is closer to the light than this minimal distance, then the surface won't be shadowed. The near value must be different than zero. Animatable. Defaults to 1.
public double shadowBias()
Specifies the correction to apply to the shadow map to correct acne artefacts. It is multiplied by an implementation-specific value to create a constant depth offset. Defaults to 1.0
public java.lang.Object shadowColor()
Specifies the color (CGColorRef or NSColor) of the shadow casted by the receiver. Defaults to black. Animatable.
On iOS 9 or earlier and macOS 10.11 or earlier, this defaults to black 50% transparent.
public CGSize shadowMapSize()
Specifies the size of the shadow map.
The larger the shadow map is the more precise the shadows are but the slower the computation is. If set to {0,0} the size of the shadow map is automatically chosen. Defaults to {0,0}.
public long shadowMode()
Specified the mode to use to cast shadows. See above for the available modes and their description. Defaults to SCNShadowModeForward.
public double shadowRadius()
Specifies the sample radius used to render the receiver’s shadow. Default value is 3.0. Animatable.
public long shadowSampleCount()
Specifies the number of sample per fragment to compute the shadow map. Defaults to 0.
On macOS 10.11 or earlier, the shadowSampleCount defaults to 16. On iOS 9 or earlier it defaults to 1.0. On macOS 10.12, iOS 10 and greater, when the shadowSampleCount is set to 0, a default sample count is chosen depending on the platform.
public double spotInnerAngle()
The angle in degrees between the spot direction and the lit element below which the lighting is at full strength. Animatable. Defaults to 0.
public double spotOuterAngle()
The angle in degrees between the spot direction and the lit element after which the lighting is at zero strength. Animatable. Defaults to 45 degrees.
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic SCNTechnique technique()
SCNTechniqueSupportSpecifies the technique of the receiver. Defaults to nil.
technique in interface SCNTechniqueSupportpublic double temperature()
Specifies the receiver's temperature.
This specifies the temperature of the light in Kelvin. The renderer multiplies the light's color by the color derived from the light's temperature. Defaults to 6500 (pure white). Animatable.
public java.lang.String type()
Specifies the receiver's type.
Defaults to SCNLightTypeOmni on iOS 8 and later, and on macOS 10.10 and later (otherwise defaults to SCNLightTypeAmbient).
public double zFar()
Specifies the maximal distance between the light and a visible surface to cast shadow on. If a surface is further from the light than this maximal distance, then the surface won't be shadowed. Animatable. Defaults to 100.
public double zNear()
Specifies the minimal distance between the light and the surface to cast shadow on. If a surface is closer to the light than this minimal distance, then the surface won't be shadowed. The near value must be different than zero. Animatable. Defaults to 1.
public void addAnimationPlayerForKey(SCNAnimationPlayer player, java.lang.String key)
SCNAnimatableAdd an animation player.
The animation player is not removed automatically on completion. The animation doesn't start playing immediatelly. Call "play" on the player to start playing it.
addAnimationPlayerForKey in interface SCNAnimatableplayer - Added animation player.key - May be any string such that only one animation per unique key is added per animatable object.play]public SCNAnimationPlayer animationPlayerForKey(java.lang.String key)
SCNAnimatableReturns the animation player with the given identifier
This will return nil if no such animation player exists.
animationPlayerForKey in interface SCNAnimatablekey - The identifier for the animation player to retrieve.public boolean automaticallyAdjustsShadowProjection()
Specifies if the shadow map projection should be done automatically or manually by the user. Defaults to YES.
public boolean forcesBackFaceCasters()
Render only back faces of the shadow caster when enabled. Defaults to NO. This is a behavior change from previous releases.
public double maximumShadowDistance()
Specifies the maximum distance from the viewpoint from which the shadows for the receiver light won't be computed. Defaults to 100.0.
public void removeAnimationForKeyBlendOutDuration(java.lang.String key,
double duration)
SCNAnimatableSmoothly remove the animation with the given identifier.
removeAnimationForKeyBlendOutDuration in interface SCNAnimatablekey - The identifier for the animation to remove.duration - The blend out duration used to remove the animation.public boolean sampleDistributedShadowMaps()
Use the sample distribution of the main rendering to better fit the shadow frusta. Defaults to NO.
public void setAutomaticallyAdjustsShadowProjection(boolean value)
Specifies if the shadow map projection should be done automatically or manually by the user. Defaults to YES.
public void setForcesBackFaceCasters(boolean value)
Render only back faces of the shadow caster when enabled. Defaults to NO. This is a behavior change from previous releases.
public void setMaximumShadowDistance(double value)
Specifies the maximum distance from the viewpoint from which the shadows for the receiver light won't be computed. Defaults to 100.0.
public void setSampleDistributedShadowMaps(boolean value)
Use the sample distribution of the main rendering to better fit the shadow frusta. Defaults to NO.
public void setShadowCascadeCount(long value)
Specifies the number of distinct shadow maps that will be computed for the receiver light. Defaults to 1. Maximum is 4.
public void setShadowCascadeSplittingFactor(double value)
Specifies a factor to interpolate between linear splitting (0) and logarithmic splitting (1). Defaults to 0.15.
public long shadowCascadeCount()
Specifies the number of distinct shadow maps that will be computed for the receiver light. Defaults to 1. Maximum is 4.
public double shadowCascadeSplittingFactor()
Specifies a factor to interpolate between linear splitting (0) and logarithmic splitting (1). Defaults to 0.15.
public NSData sphericalHarmonicsCoefficients()
The receiver's spherical harmonics coefficients.
Currently spherical harmonics are only supported by light probes (SCNLightTypeProbe). The data is an array of 27 32-bit floating-point values, containing three non-interleaved data sets corresponding to the red, green, and blue sets of coefficients.
public NSArray<? extends NSValue> areaPolygonVertices()
Determines the shape of light of an area light of type SCNLightAreaTypePolygon. Defaults nil.
An array of CGPoint values corresponding to the coordinates of the polygon's vertices in the XY plane.
public long areaType()
Determines the shape of a light of type SCNLightTypeArea. Defaults to SCNLightAreaTypeRectangle.
public boolean doubleSided()
Determines whether a light of type SCNLightTypeArea is double-sided. Defaults NO.
Area lights of type SCNLightAreaTypeRectangle or SCNLightAreaTypePolygon emit light along the -Z axis. When set to YES, they also emit light along the +Z axis.
public boolean drawsArea()
Determines whether the shape of a light of type SCNLightTypeArea is drawn in the scene. Defaults to YES.
public boolean parallaxCorrectionEnabled()
public SCNMaterialProperty probeEnvironment()
public long probeType()
public long probeUpdateType()
public void setAreaPolygonVertices(NSArray<? extends NSValue> value)
Determines the shape of light of an area light of type SCNLightAreaTypePolygon. Defaults nil.
An array of CGPoint values corresponding to the coordinates of the polygon's vertices in the XY plane.
public void setAreaType(long value)
Determines the shape of a light of type SCNLightTypeArea. Defaults to SCNLightAreaTypeRectangle.
public void setDoubleSided(boolean value)
Determines whether a light of type SCNLightTypeArea is double-sided. Defaults NO.
Area lights of type SCNLightAreaTypeRectangle or SCNLightAreaTypePolygon emit light along the -Z axis. When set to YES, they also emit light along the +Z axis.
public void setDrawsArea(boolean value)
Determines whether the shape of a light of type SCNLightTypeArea is drawn in the scene. Defaults to YES.
public void setParallaxCorrectionEnabled(boolean value)
public void setProbeType(long value)
public void setProbeUpdateType(long value)
public void removeAllAnimationsWithBlendOutDuration(double duration)
SCNAnimatableSmoothly remove all animations.
removeAllAnimationsWithBlendOutDuration in interface SCNAnimatableduration - The blend out duration used to remove the animation.