Material

open class Material(val shader: ShaderProgram<*, *>? = null) : Disposable

Author

Colton Daily

Constructors

Link copied to clipboard
fun Material(shader: ShaderProgram<*, *>? = null)

Functions

Link copied to clipboard
open override fun dispose()
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open fun onPreRender()

Can be used to set shader uniforms and such right before rendering.

Properties

Link copied to clipboard

The BlendMode this material uses. Defaults to BlendMode.NonPreMultiplied.

Link copied to clipboard
Link copied to clipboard
val shader: ShaderProgram<*, *>? = null

The ShaderProgram that this material will use for rendering

Inheritors

Link copied to clipboard