ShaderImpl

backend.ShaderImpl (Class)

Static Members

unity
clone(fromShader: ShaderImpl): ShaderImpl
Name Type
fromShader ShaderImpl
Returns
ShaderImpl

Instance Members

unity
path: String

unity
unityShader: Dynamic


unity
isBatchingMultiTexture: Bool

unity
setInt(name: String, value: Int): Void
Name Type
name String
value Int

unity
setFloat(name: String, value: Float): Void
Name Type
name String
value Float

unity
setColor(name: String, r: Float, g: Float, b: Float, a: Float): Void
Name Type
name String
r Float
g Float
b Float
a Float

unity
setVec2(name: String, x: Float, y: Float): Void
Name Type
name String
x Float
y Float

unity
setVec3(name: String, x: Float, y: Float, z: Float): Void
Name Type
name String
x Float
y Float
z Float

unity
setVec4(name: String, x: Float, y: Float, z: Float, w: Float): Void
Name Type
name String
x Float
y Float
z Float
w Float

unity
setFloatArray(name: String, array: Array<Float>): Void
Name Type
name String
array Array<Float>

unity
setTexture(name: String, slot: Int, texture: Texture): Void
Name Type
name String
slot Int
texture Texture

unity
setMat4FromTransform(name: String, transform: ceramic.Transform): Void
Name Type
name String
transform ceramic.Transform

unity
new(unityShader: Dynamic, ?customAttributes: ceramic.ReadOnlyArray<ceramic.ShaderAttribute>): Void
Name Type Default
unityShader Dynamic
customAttributes ceramic.ReadOnlyArray<ceramic.ShaderAttribute> (optional)

Private Members

unity
MAX_PARAMS_DIRTY: Int

unity
paramsVersion: Int

unity
intParams: Map

unity
floatParams: Map

unity
colorParams: Map

unity
vec2Params: Map

unity
vec3Params: Map

unity
vec4Params: Map

unity
floatArrayParams: Map

unity
textureParams: Map

unity
textureSlots: Array<Texture>

unity
mat4Params: Map

unity
sanitizeUniformName(name: String): String
Name Type
name String
Returns
String

unity
toString(): String
Returns
String

Metadata

Name Parameters
:hxGen -
:allow backend.MaterialData