Uniforms
clay.graphics.Uniforms (Class)
Instance Members
gpuShader: clay.GpuShader
Name | Type |
---|---|
name |
String |
value |
Int |
setIntArray(name: String, value: clay.buffers.Int32Array): Void
Name | Type |
---|---|
name |
String |
value |
clay.buffers.Int32Array |
Name | Type |
---|---|
name |
String |
value |
Float |
setFloatArray(name: String, value: clay.buffers.Float32Array): Void
Name | Type |
---|---|
name |
String |
value |
clay.buffers.Float32Array |
Name | Type |
---|---|
name |
String |
x |
Float |
y |
Float |
Name | Type |
---|---|
name |
String |
x |
Float |
y |
Float |
z |
Float |
Name | Type |
---|---|
name |
String |
x |
Float |
y |
Float |
z |
Float |
w |
Float |
setMatrix4(name: String, value: clay.buffers.Float32Array): Void
Name | Type |
---|---|
name |
String |
value |
clay.buffers.Float32Array |
Name | Type |
---|---|
name |
String |
r |
Float |
g |
Float |
b |
Float |
a |
Float |
Name | Type |
---|---|
name |
String |
slot |
Int |
texture |
Texture |
apply(): Void
clone(): Uniforms
Returns |
---|
Uniforms |
new(gpuShader: clay.GpuShader): Void
Name | Type |
---|---|
gpuShader |
clay.GpuShader |
Private Members
ints: clay.IntMap
intArrays: clay.IntMap
floats: clay.IntMap
floatArrays: clay.IntMap
vector2s: clay.IntMap
vector3s: clay.IntMap
vector4s: clay.IntMap
matrix4s: clay.IntMap
colors: clay.IntMap
textures: clay.IntMap