SurfaceShader
Stores a custom surface shader and its parameter layout.
- Creatable
Instance.new("SurfaceShader")- Inherits
- Instance
- Replication
- Standard
Behavior
SurfaceShader stores a custom surface shader and its parameter layout.
Summary
The latest compilation error for this source, or nil when compilation has not been attempted, is pending, or has succeeded.
Whether the renderer has reported successful compilation for the current source.
Source: string = "fn surface(input: SurfaceInput, base: SurfaceOutput) -> SurfaceOutput { var out = base; return out; } "parallel readreplicatesThe custom shader program source.
Returns this instance if it is an ExecutionGroup.
Properties
CompileError
SurfaceShader.CompileError: string? = ""The latest compilation error for this source, or nil when compilation has not been attempted, is pending, or has succeeded.
Compiled
SurfaceShader.Compiled: boolean = falseWhether the renderer has reported successful compilation for the current source.
Source
SurfaceShader.Source: string = "fn surface(input: SurfaceInput, base: SurfaceOutput) -> SurfaceOutput {
var out = base;
return out;
}
"The custom shader program source. Source length is limited to 64 KiB. Read Compiled and CompileError for renderer compilation results.
Methods
GetExecutionGroup
SurfaceShader: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