ModelMaterial

open class ModelMaterial(val shader: ShaderProgram<*, *>) : Material

Author

Colton Daily

Constructors

Link copied to clipboard
fun ModelMaterial(shader: ShaderProgram<*, *>)

Types

Link copied to clipboard
object Companion

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
Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
var joints: Array<Mat4>? = null
Link copied to clipboard
Link copied to clipboard
var lightPosition: Vec3f? = null
Link copied to clipboard
var model: Mat4? = null
Link copied to clipboard
var modelInv: Mat4? = null
Link copied to clipboard
var projection: Mat4? = null
Link copied to clipboard
val shader: ShaderProgram<*, *>? = null

The ShaderProgram that this material will use for rendering

Link copied to clipboard
Link copied to clipboard
var texture: Texture? = null
Link copied to clipboard
var useJoints: Boolean = false
Link copied to clipboard
var viewPosition: Vec3f? = null