rhodonite
    Preparing search index...

    Class RhodoniteImportExtension

    Extension class for importing Rhodonite-specific features from RnM2 format files. Handles billboard and Effekseer effect imports.

    Index

    Constructors

    Methods

    • Creates a node-based custom material from RHODONITE_materials_node extension data. Uses ShaderGraphResolver to generate shader code from the loaded .rmn JSON, then creates a custom material using MaterialHelper.

      Parameters

      • engine: Engine

        The engine instance

      • gltfModel: RnM2

        The glTF model containing textures and samplers

      • materialJson: RnM2Material

        The glTF material JSON containing the extension

      • rnTextures: Texture[]

        Array of loaded Rhodonite textures

      • rnSamplers: Sampler[]

        Array of loaded Rhodonite samplers

      • options: PbrUberMaterialOptions

      Returns Material | undefined

      The created custom material, or the current material if creation fails

    • Imports billboard configuration from RnM2 format and applies it to scene graph entities. Processes the RHODONITE_billboard extension to enable billboard rendering for specified nodes.

      Parameters

      • gltfJson: RnM2

        The RnM2 format JSON data containing billboard extension information

      • groups: ISceneGraphEntity[]

        Array of scene graph entities corresponding to nodes in the RnM2 data

      Returns void

    • Imports Effekseer effects from RnM2 format and creates corresponding Effekseer components. Processes the RHODONITE_effekseer extension to load particle effects with their configurations.

      Parameters

      • engine: Engine
      • gltfJson: RnM2

        The RnM2 format JSON data containing Effekseer extension information

      • rootGroup: ISceneGraphEntity

        The root scene graph entity that contains all imported entities

      Returns void