Open Asterune
ShaderEffect

ShaderEffect

Applies a custom full-screen shader.

Creatable
Instance.new("ShaderEffect")
Inherits
Instance
Replication
Standard

Behavior

ShaderEffect applies a custom full-screen shader.

Summary

Members9
Properties6
  • CompileError: string? = ""parallel readread only

    The latest compilation error for this source, or nil when compilation has not been attempted, is pending, or has succeeded.

  • Compiled: boolean = falseparallel readread only

    Whether the renderer has reported successful compilation for the current source.

  • Enabled: boolean = trueparallel readreplicates

    Whether this post-processing effect is applied to the rendered image.

  • Parameters: string = "[[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0]]"parallel readread only

    The serialized parameter values supplied to the custom shader.

  • Priority: number = 0parallel readreplicates

    The relative priority used to order or process this object.

  • Source: string = "fn effect(uv: vec2<f32>, color: vec4<f32>) -> vec4<f32> { return color; } "parallel readreplicates

    The custom shader program source.

Methods3

Properties

CompileError

ShaderEffect.CompileError: string? = ""

The latest compilation error for this source, or nil when compilation has not been attempted, is pending, or has succeeded.

Compiled

ShaderEffect.Compiled: boolean = false

Whether the renderer has reported successful compilation for the current source.

Enabled

ShaderEffect.Enabled: boolean = true

Whether this post-processing effect is applied to the rendered image.

Parameters

ShaderEffect.Parameters: string = "[[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0],[0.0,0.0,0.0,0.0]]"

The serialized parameter values supplied to the custom shader.

Priority

ShaderEffect.Priority: number = 0

The relative priority used to order or process this object.

Source

ShaderEffect.Source: string = "fn effect(uv: vec2<f32>, color: vec4<f32>) -> vec4<f32> { return color; } "

The custom shader program source. Source length is limited to 64 KiB. Read Compiled and CompileError for renderer compilation results.

Methods

GetExecutionGroup

ShaderEffect:GetExecutionGroup(): ExecutionGroup?

Returns this instance if it is an ExecutionGroup. Otherwise returns the nearest ancestor ExecutionGroup, or nil when no group contains the instance.

GetParameter

ShaderEffect:GetParameter(index: number): (number, number, number, number)

Returns the value stored in the selected shader parameter slot.

SetParameter

ShaderEffect:SetParameter(index: number, value: number | boolean | Vector2 | Vector3 | Color3 | { number }): ()

Sets the selected shader parameter slot.

Inherited members

Inherited47

Instance