Variable ConfigConst

Config: {
    boneDataType: EnumIO;
    cacheWebGpuRenderBundles: boolean;
    cgApiDebugConsoleOutput: boolean;
    dataTextureHeight: number;
    dataTextureWidth: number;
    eventTargetDom: undefined | HTMLElement;
    isMobile: boolean;
    isUboEnabled: boolean;
    maxCameraNumber: number;
    maxEntityNumber: number;
    maxLightNumber: number;
    maxMaterialInstanceForEachType: number;
    maxMorphPrimitiveNumberInWebGPU: number;
    maxMorphTargetNumber: number;
    maxSkeletalBoneNumber: number;
    maxSkeletalBoneNumberForUniformMode: number;
    maxSkeletonNumber: number;
    multiViewForWebVR: boolean;
    physicsTimeIntervalScale: number;
} = ...

Config is a configuration object that contains the configuration for the library.

Type declaration

  • boneDataType: EnumIO

    The data type of the bone

  • cacheWebGpuRenderBundles: boolean

    Whether to cache the WebGPU render bundles

  • cgApiDebugConsoleOutput: boolean

    Whether to output the CG API debug console

  • dataTextureHeight: number

    The height of the data texture

  • dataTextureWidth: number

    The width of the data texture

  • eventTargetDom: undefined | HTMLElement

    The event target DOM for mouse operation

  • isMobile: boolean

    Whether the device is a mobile device

  • isUboEnabled: boolean

    Whether the UBO is enabled

  • maxCameraNumber: number

    The maximum number of cameras that Rhodonite can handle

  • maxEntityNumber: number

    The maximum number of entities that Rhodonite can handle

  • maxLightNumber: number

    The maximum number of lights that Rhodonite can handle

  • maxMaterialInstanceForEachType: number

    Number of instances of each material type to be placed consecutively in memory. This is on the memory layout, and the number of material instances that can be generated is not limited by this setting. If this limit is exceeded, the material type is internally treated as a separate material type.

  • maxMorphPrimitiveNumberInWebGPU: number

    The maximum number of morph primitives that Rhodonite can handle in WebGPU

  • maxMorphTargetNumber: number

    The maximum number of morph targets that Rhodonite can handle

  • maxSkeletalBoneNumber: number

    The maximum number of bones of each skeleton that Rhodonite can handle

  • maxSkeletalBoneNumberForUniformMode: number

    The maximum number of bones of each skeleton that Rhodonite can handle for Uniform Mode

  • maxSkeletonNumber: number

    The maximum number of skeletons that Rhodonite can handle

  • multiViewForWebVR: boolean

    Whether to enable multi-view extension for WebVR

  • physicsTimeIntervalScale: number

    The scale of the physics time interval