Optional__Optional__Optional__This can be set to true in the importer to indicate that the source buffer should be loaded and cached in the userdata during processRaw
Optional__Cached source blob for the asset
Optional__Cached source buffer for the asset (only cached when __needsSourceBuffer is set)
Optional_Optional_Optional_Optional_Optional_Optional_OptionalanimationOptionalautoAutomatically register this material in the MaterialManager when added to the scene. This provides hook to other plugins to extend the material, add uiconfig etc.
OptionalcloneOptionalcloneOptionalconstraintsOptionaldisposeAutomatically dispose material when not used by any object in the scene
OptionalenvThe environment map to use in the RootScene. To use this, object with the material must be in the RootScene, and the key should exist in the RootScene's textureSlots.
only for materials that have envMap
OptionalforcedForce a depth value in GBuffer. This is useful to force center values like 0 to the depth.
OptionalgSee GBufferPlugin
OptionalinverseOptionalisIf this is a placeholder/dummy material. These materials are not saved in asset/glTF files.
OptionalpluginsGeneral flag to disable multiple plugins on the material at once, like SSAO, SSR, Bloom etc.
OptionalpostOptionalrenderSame as renderToGBuffer, and takes precedence over it, for the passes that render depth:
DepthBufferPlugin and GBufferPlugin, and the normal buffer of NormalBufferPlugin when its
renderTransparent is false. When not set, renderToGBuffer is used.
OptionalrenderWrite the GBuffer flags (tone mapping, bloom, SSAO and the others of GBufferPlugin) for the pixels of the
material even when it is not drawn into the GBuffer, for example with renderToGBuffer: false. Such a material
then writes only the flags texture: no depth and no normal, so it does not change SSAO, SSR, depth of field or
outlines. It is drawn after the other objects, without depth write, with its own depth test, and its pixels with
an alpha (from map, alphaMap and alphaTest) of about 0 are left out.
Overlays like the helper widgets use it with toneMapped: false, so that the screen pass does not tone map them and
they keep their exact color.
When not set, the flags are written where the material is drawn into the GBuffer (renderToDepth, then
renderToGBuffer), as before. A material that is drawn into the GBuffer always writes its flags.
Needs the flags texture (GBufferPlugin.renderFlagsBuffer, on by default) and a material that the GBufferMaterial
draws: one with allowOverride true, or a fat line (its customGBufferMaterial). Not used with pluginsDisabled.
OptionalrenderDraw the material into the GBuffer of GBufferPlugin (depth, normal and flags), the depth of DepthBufferPlugin,
and the normal buffer of NormalBufferPlugin when its renderTransparent is false. SSAO, SSR, depth of field and
outlines see only the materials drawn there. renderToDepth takes precedence over it when set.
true: drawn, also when transparent or transmissive.false: not drawn, and no flags are written for its pixels (see renderToFlags). pluginsDisabled acts
as false.map or alphaMap. A transmissive material is not drawn.A material that is drawn keeps the cut-out shape of its map and alphaMap alpha, as in the render: pixels with an
alpha below its alphaTest are left out, and all the others write depth and normal. With alphaTest 0 nothing is cut.
For foliage, lace and decals, use an opaque material with alphaTest (glTF alphaMode: MASK): it is drawn with its
shape. A blended material (transparent: true with an alpha texture, glTF BLEND) is not drawn unless this is
true, and then all its pixels write depth, also the transparent ones, so set alphaTest with it.
OptionalrootThe path from which the asset was downloaded/imported.
OptionalrootIncase files are loaded as different extensions(like for json), this will be set.
OptionalrootWhether to refresh this object from the asset manager when its loaded as an embedded object
OptionalruntimeOptionalseparateFlag to tell the scene to prefer material.envMapIntensity over scene.environmentIntensity
only for materials that have envMapIntensity
OptionalsetOptionalsList of properties that will be saved in the glb/material files when this material is saved. The other properties are expected to be loaded/filled at runtime by default values or from an external material loaded from IImportResultUserData.rootPath.
OptionalssaoCast SSAO on other objects. if casting is not working when this is false, ensure render to depth is true, like for transparent objects
OptionalssaoDisable SSAOPlugin for this material.
OptionalsscsFor SSCSPlugin
OptionalssreflFor SSRPlugin
OptionalssreflFor SSRPlugin
Optionaluuid
extra arbitrary data saved by the importer that can be used by the plugins (like gltf material variants)