UbershaderProvider

UbershaderProvider uses pre-compiled ubershader materials.

This is the recommended MaterialProvider for most use cases. It uses a small set of pre-compiled, flexible materials that cover most glTF 2.0 features, avoiding the overhead of JIT compilation while maintaining broad compatibility.

See also

UbershaderProvider uses pre-compiled ubershader materials.

This is the recommended MaterialProvider for most use cases. It uses a small set of pre-compiled, flexible materials that cover most glTF 2.0 features, avoiding the overhead of JIT compilation while maintaining broad compatibility.

See also

UbershaderProvider uses pre-compiled ubershader materials.

This is the recommended MaterialProvider for most use cases. It uses a small set of pre-compiled, flexible materials that cover most glTF 2.0 features, avoiding the overhead of JIT compilation while maintaining broad compatibility.

See also

UbershaderProvider uses pre-compiled ubershader materials.

This is the recommended MaterialProvider for most use cases. It uses a small set of pre-compiled, flexible materials that cover most glTF 2.0 features, avoiding the overhead of JIT compilation while maintaining broad compatibility.

See also

UbershaderProvider uses pre-compiled ubershader materials.

This is the recommended MaterialProvider for most use cases. It uses a small set of pre-compiled, flexible materials that cover most glTF 2.0 features, avoiding the overhead of JIT compilation while maintaining broad compatibility.

See also

Constructors

Link copied to clipboard
actual constructor(engine: Engine)
expect constructor(engine: Engine)

Create an UbershaderProvider.

actual constructor(engine: Engine)
actual constructor(engine: Engine)
actual constructor(engine: Engine)

Properties

Link copied to clipboard
var nativeHandle: CPointer<FilaMaterialProvider>?

Functions

Link copied to clipboard
actual open override fun createMaterialInstance(config: MaterialKey, uvmap: IntArray, label: String?, extras: String?): MaterialInstance?
expect open override fun createMaterialInstance(config: MaterialKey, uvmap: IntArray, label: String? = null, extras: String? = null): MaterialInstance?
actual open override fun createMaterialInstance(config: MaterialKey, uvmap: IntArray, label: String?, extras: String?): MaterialInstance?
actual open override fun createMaterialInstance(config: MaterialKey, uvmap: IntArray, label: String?, extras: String?): MaterialInstance?
actual open override fun createMaterialInstance(config: MaterialKey, uvmap: IntArray, label: String?, extras: String?): MaterialInstance?
Link copied to clipboard
actual open override fun destroy()
expect open override fun destroy()
actual open override fun destroy()
actual open override fun destroy()
actual open override fun destroy()
Link copied to clipboard
actual open override fun destroyMaterials()
expect open override fun destroyMaterials()
actual open override fun destroyMaterials()
actual open override fun destroyMaterials()
actual open override fun destroyMaterials()
Link copied to clipboard
actual open override fun getMaterial(config: MaterialKey, uvmap: IntArray, label: String?): Material?
expect open override fun getMaterial(config: MaterialKey, uvmap: IntArray, label: String? = null): Material?
actual open override fun getMaterial(config: MaterialKey, uvmap: IntArray, label: String?): Material?
actual open override fun getMaterial(config: MaterialKey, uvmap: IntArray, label: String?): Material?
actual open override fun getMaterial(config: MaterialKey, uvmap: IntArray, label: String?): Material?
Link copied to clipboard
actual open override fun getMaterials(): Array<Material>
expect open override fun getMaterials(): Array<Material>
actual open override fun getMaterials(): Array<Material>
actual open override fun getMaterials(): Array<Material>
actual open override fun getMaterials(): Array<Material>
Link copied to clipboard
open override fun getNativeHandle(): MemorySegment?

The underlying FilaMaterialProvider* — used by AssetLoader.

open override fun getNativeHandle(): CPointer<FilaMaterialProvider>?
Link copied to clipboard
open override fun getNativeProvider(): MaterialProvider
Link copied to clipboard
actual open override fun needsDummyData(attrib: Int): Boolean
expect open override fun needsDummyData(attrib: Int): Boolean
actual open override fun needsDummyData(attrib: Int): Boolean
actual open override fun needsDummyData(attrib: Int): Boolean
actual open override fun needsDummyData(attrib: Int): Boolean