SurfaceAppearance
Configures physically based textures and surface shading for a Part.
- Creatable
Instance.new("SurfaceAppearance")- Inherits
- Instance
- Replication
- Standard
Behavior
SurfaceAppearance configures physically based textures and surface shading for a Part.
Summary
The alpha threshold used to discard pixels in masked rendering.
The rendering mode used for the base-color texture's alpha channel.
The strength of direction-dependent specular reflection.
The orientation of anisotropic surface reflections.
The strength of the additional clearcoat reflection layer.
The roughness of the clearcoat reflection layer.
The color applied when rendering this instance.
The content identifier of the surface's base-color texture.
Whether the surface is rendered from both sides of its triangles.
The color emitted by the surface.
The content identifier of the texture that masks surface emission.
The intensity multiplier for surface emission.
The surface's index of refraction.
The content identifier of the packed metallic and roughness texture.
The metallic contribution of the surface shading model.
The content identifier of the surface's metalness texture.
The content identifier of the surface's normal texture.
The strength of the surface normal map.
The content identifier of the surface occlusion texture.
The strength of the occlusion texture's contribution.
The roughness of the surface's specular reflection.
The content identifier of the surface's roughness texture.
The contribution of the surface's sheen layer.
The tint of the sheen reflection.
The roughness of the sheen reflection.
The tint applied to specular reflection.
The contribution of subsurface scattering.
The tint of subsurface-scattered light.
The thickness of the stroke or shell.
The fraction of light transmitted through the surface.
Returns this instance if it is an ExecutionGroup.
Properties
AlphaCutoff
SurfaceAppearance.AlphaCutoff: number = 0.5The alpha threshold used to discard pixels in masked rendering.
AlphaMode
SurfaceAppearance.AlphaMode: number = 0The rendering mode used for the base-color texture's alpha channel.
Anisotropy
SurfaceAppearance.Anisotropy: number = 0The strength of direction-dependent specular reflection.
AnisotropyDirection
SurfaceAppearance.AnisotropyDirection: number = 0The orientation of anisotropic surface reflections.
Clearcoat
SurfaceAppearance.Clearcoat: number = 0The strength of the additional clearcoat reflection layer.
ClearcoatRoughness
SurfaceAppearance.ClearcoatRoughness: number = 0.05The roughness of the clearcoat reflection layer.
Color
SurfaceAppearance.Color: Color3 = Color3.new(1, 1, 1)The color applied when rendering this instance.
ColorMap
SurfaceAppearance.ColorMap: Content = ""The content identifier of the surface's base-color texture.
DoubleSided
SurfaceAppearance.DoubleSided: boolean = falseWhether the surface is rendered from both sides of its triangles.
EmissiveColor
SurfaceAppearance.EmissiveColor: Color3 = Color3.new(1, 1, 1)The color emitted by the surface.
EmissiveMask
SurfaceAppearance.EmissiveMask: Content = ""The content identifier of the texture that masks surface emission.
EmissiveStrength
SurfaceAppearance.EmissiveStrength: number = 0The intensity multiplier for surface emission.
IOR
SurfaceAppearance.IOR: number = 1.5The surface's index of refraction.
MetallicRoughnessMap
SurfaceAppearance.MetallicRoughnessMap: Content = ""The content identifier of the packed metallic and roughness texture.
Metalness
SurfaceAppearance.Metalness: number = -1The metallic contribution of the surface shading model.
MetalnessMap
SurfaceAppearance.MetalnessMap: Content = ""The content identifier of the surface's metalness texture.
NormalMap
SurfaceAppearance.NormalMap: Content = ""The content identifier of the surface's normal texture.
NormalScale
SurfaceAppearance.NormalScale: number = 1The strength of the surface normal map.
OcclusionMap
SurfaceAppearance.OcclusionMap: Content = ""The content identifier of the surface occlusion texture.
OcclusionStrength
SurfaceAppearance.OcclusionStrength: number = 1The strength of the occlusion texture's contribution.
Roughness
SurfaceAppearance.Roughness: number = -1The roughness of the surface's specular reflection.
RoughnessMap
SurfaceAppearance.RoughnessMap: Content = ""The content identifier of the surface's roughness texture.
Sheen
SurfaceAppearance.Sheen: number = 0The contribution of the surface's sheen layer.
SheenColor
SurfaceAppearance.SheenColor: Color3 = Color3.new(1, 1, 1)The tint of the sheen reflection.
SheenRoughness
SurfaceAppearance.SheenRoughness: number = 0.5The roughness of the sheen reflection.
SpecularTint
SurfaceAppearance.SpecularTint: Color3 = Color3.new(1, 1, 1)The tint applied to specular reflection.
Subsurface
SurfaceAppearance.Subsurface: number = 0The contribution of subsurface scattering.
SubsurfaceColor
SurfaceAppearance.SubsurfaceColor: Color3 = Color3.new(1, 0.35, 0.25)The tint of subsurface-scattered light.
Thickness
SurfaceAppearance.Thickness: number = 0.2The thickness of the stroke or shell.
Transmission
SurfaceAppearance.Transmission: number = 0The fraction of light transmitted through the surface.
Methods
GetExecutionGroup
SurfaceAppearance:GetExecutionGroup(): ExecutionGroup?Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.
Inherited members
- Properties
- ArchivableClassNameNameParent
- Methods
- AddComponent()AddTag()ClearAllChildren()ClearTags()Clone()Destroy()FindFirstAncestor()FindFirstAncestorOfClass()FindFirstAncestorWhichIsA()FindFirstChild()FindFirstChildOfClass()FindFirstChildWhichIsA()FindFirstDescendant()GetAttribute()GetAttributeChangedSignal()GetAttributes()GetChildren()GetComponent()GetComponentChangedSignal()GetComponents()GetDebugId()GetDescendants()GetFullName()GetPropertyChangedSignal()GetReferencing()GetTags()HasComponent()HasTag()IsA()IsAncestorOf()IsDescendantOf()RemoveComponent()RemoveTag()SetAttribute()WaitForChild()
- Events
- AncestryChangedAttributeChangedChangedChildAddedChildRemovedDescendantAddedDescendantRemovingDestroying