openrndr / org.openrndr.draw / ShadeStyle

ShadeStyle

open class ShadeStyle (source)

Types

Parameter

inner class Parameter<R : Any> : ReadWriteProperty<ShadeStyle, R>

Constructors

<init>

ShadeStyle()
ShadeStyle(other: ShadeStyle)

Properties

attributes

var attributes: MutableList<VertexBuffer>

buffers

val buffers: MutableMap<String, String>

bufferValues

var bufferValues: MutableMap<String, Any>

dirty

var dirty: Boolean

fragmentPreamble

var fragmentPreamble: String?

fragmentTransform

var fragmentTransform: String?

geometryPreamble

var geometryPreamble: String?

geometryTransform

var geometryTransform: String?

outputs

var outputs: ObservableHashmap<String, ShadeStyleOutput>

parameters

var parameters: ObservableHashmap<String, String>

parameterValues

var parameterValues: MutableMap<String, Any>

suppressDefaultOutput

var suppressDefaultOutput: Boolean

vertexPreamble

var vertexPreamble: String?

vertexTransform

var vertexTransform: String?

Functions

attributes

fun attributes(attributesBuffer: VertexBuffer): Unit

buffer

fun buffer(name: String, buffer: ShaderStorageBuffer): Unit
fun buffer(name: String, buffer: AtomicCounterBuffer): Unit

output

fun output(name: String, output: ShadeStyleOutput): Unit

parameter

fun parameter(name: String, value: Cubemap): Unit
fun parameter(name: String, value: Boolean): Unit
fun parameter(name: String, value: Int): Unit
fun parameter(name: String, value: Matrix33): Unit
fun parameter(name: String, value: Matrix44): Unit
fun parameter(name: String, value: Array<Matrix44>): Unit
fun parameter(name: String, value: Array<Vector2>): Unit
fun parameter(name: String, value: Array<Vector3>): Unit
fun parameter(name: String, value: Array<Vector4>): Unit
fun parameter(name: String, value: Array<ColorRGBa>): Unit
fun parameter(name: String, value: Float): Unit
fun parameter(name: String, value: Double): Unit
fun parameter(name: String, value: Vector2): Unit
fun parameter(name: String, value: Vector3): Unit
fun parameter(name: String, value: Vector4): Unit
fun parameter(name: String, value: IntVector2): Unit
fun parameter(name: String, value: IntVector3): Unit
fun parameter(name: String, value: IntVector4): Unit
fun parameter(name: String, value: ColorRGBa): Unit
fun parameter(name: String, value: ColorBuffer): Unit
fun parameter(name: String, value: DepthBuffer): Unit
fun parameter(name: String, value: ArrayTexture): Unit
fun parameter(name: String, value: ArrayCubemap): Unit
fun parameter(name: String, value: BufferTexture): Unit
fun parameter(name: String, value: VolumeTexture): Unit
fun parameter(name: String, value: ImageBinding): Unit

plus

operator fun plus(other: ShadeStyle): ShadeStyle