ShaderPrimitive

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

@SuppressWarnings(scala.Array.apply[java.lang.String]("scalafix:DisableSyntax.asInstanceOf")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
final case class array[T](size: Int, values: ArraySeq[T])(using ev: IsShaderValue[T]) extends ShaderPrimitive

array data to send to the fragment shader

array data to send to the fragment shader

Value Params
ev

Implicit proof that T is a Shader value (float, vec2, vec3, vec4)

size

Size != Length! Size is the memory allocated, the max possible number of entries, e.g. you are sending 3 x vec2 but the size is 16, meaning the max you could send is 16 x vec2 but no more than that.

values

The values to send

Companion
object
object array
Companion
class
final case class float(value: Float) extends ShaderPrimitive
Companion
object
object float
Companion
class
final case class mat4(mat: Array[Float]) extends ShaderPrimitive
Companion
object
object mat4
Companion
class
@SuppressWarnings(scala.Array.apply[java.lang.String]("scalafix:DisableSyntax.asInstanceOf")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
final case class rawArray(arr: Array[Float]) extends ShaderPrimitive

Advanced usage only, a raw array of Float's to send to the fragment shader. Warning: The assumption here is that you know what you're doing i.e. how the packing/unpacking rules work. If you don't, use a normal shader array!

Advanced usage only, a raw array of Float's to send to the fragment shader. Warning: The assumption here is that you know what you're doing i.e. how the packing/unpacking rules work. If you don't, use a normal shader array!

Value Params
arr

The array of Floats to send

Companion
object
object rawArray
Companion
class
final case class vec2(x: Float, y: Float) extends ShaderPrimitive
Companion
object
object vec2
Companion
class
final case class vec3(x: Float, y: Float, z: Float) extends ShaderPrimitive
Companion
object
object vec3
Companion
class
final case class vec4(x: Float, y: Float, z: Float, w: Float) extends ShaderPrimitive
Companion
object
object vec4
Companion
class

Value members

Concrete fields