ModelCoordinates

class ModelCoordinates(texture: ColorBuffer, var input: String = "va_texCoord0.xy", var tangentInput: String? = null, textureFunction: TextureFunction = TextureFunction.TILING, var pre: String? = null, var post: String? = null) : TextureFromColorBuffer(source)

Parameters

texture

the texture to sample from

input

input coordinates, default is "va_texCoord0.xy"

textureFunction

the texture function to use, default is TextureFunction.TILING

pre

the pre-fetch shader code to inject, can only adjust "x_texCoord"

post

the post-fetch shader code to inject, can only adjust "x_texture"

Constructors

Link copied to clipboard
constructor(texture: ColorBuffer, input: String = "va_texCoord0.xy", tangentInput: String? = null, textureFunction: TextureFunction = TextureFunction.TILING, pre: String? = null, post: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
var post: String?
Link copied to clipboard
var pre: String?
Link copied to clipboard
Link copied to clipboard
var texture: ColorBuffer
Link copied to clipboard

Functions

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String