rhodonite
    Preparing search index...

    Class Config

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

    Index
    • Parameters

      • initDescription: ConfigInitDescription = {}

      Returns Config

    boneDataType: EnumIO | undefined = undefined

    Forces the bone data type of all SkeletalComponents. When undefined (default), each SkeletalComponent uses its own bone data type (see SkeletalComponent.setBoneDataType). Importers choose Vec4x1 or Vec4x2 automatically, and other SkeletalComponents default to Vec4x2.

    bufferSizeDivisionRatiosForGPUInstanceDataUsage: number[] = ...

    The buffer size division ratios for GPU instance data usage

    cacheWebGpuRenderBundles: boolean = true

    Whether to cache the WebGPU render bundles

    cameraComponentCountPerBufferView: number = 1

    The number of camera components per buffer view

    cgApiDebugConsoleOutput: boolean = false

    Whether to output the CG API debug console

    eventTargetDom: HTMLElement | undefined

    The event target DOM for mouse operation

    isMobile: boolean = false

    Whether the device is a mobile device

    isMultiDrawEnabled: boolean = true

    Whether to enable WebGL multi-draw rendering. When enabled (and supported), primitives sharing a source Buffer are merged into shared vertex/index buffers and consecutive draws with the same state are issued with WEBGL_multi_draw.

    isUboEnabled: boolean = false

    Whether the UBO is enabled

    lightComponentCountPerBufferView: number = 1

    The number of light components per buffer view

    logLevel: LogLevel = LogLevel.Warn

    The minimum log level that will be output. Messages below this level are ignored.

    materialCountPerBufferView: number = 100

    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.

    maxLightNumber: number = 6

    The maximum number of lights that Rhodonite can handle

    multiViewForWebVR: boolean = false

    Whether to enable multi-view extension for WebVR

    physicsTimeIntervalScale: number = 1

    The scale of the physics time interval

    scenegraphComponentCountPerBufferView: number = 1000

    The number of scenegraph components per buffer view

    skeletalComponentCountPerBufferView: number = 100

    The number of skeletal components per buffer view