Type alias SceneJson

SceneJson: { animations?: AnimationDefinitions; cloneMaterialsOnMutation?: boolean; engine?: { adaptToDeviceRatio?: boolean; antialiasing?: boolean; limitTextureSize?: LimitTextureSizeConfig | false; options?: EngineOptions }; meshPicking?: boolean; parameterDeclaration?: ParameterDeclarations; parameters?: ParameterBag; placements?: PlacementDefinitions; scene: SceneDefinition }

Type declaration

  • Optional animations?: AnimationDefinitions
  • Optional cloneMaterialsOnMutation?: boolean

    Information about material cloning. Default value is false.

  • Optional engine?: { adaptToDeviceRatio?: boolean; antialiasing?: boolean; limitTextureSize?: LimitTextureSizeConfig | false; options?: EngineOptions }
    • Optional adaptToDeviceRatio?: boolean
    • Optional antialiasing?: boolean
    • Optional limitTextureSize?: LimitTextureSizeConfig | false

      Possibility to limit the size of textures when getting loaded by the engine. Activating this feature potentially saves a lot of memory and can be used to avoid crashes when loading expensive models on weaker devices. In praxis this has been an issue with iPhones a lot, therefore it's possible to activate this feature for iPhones only as well.

    • Optional options?: EngineOptions
  • Optional meshPicking?: boolean
  • Optional parameterDeclaration?: ParameterDeclarations
  • Optional parameters?: ParameterBag
  • Optional placements?: PlacementDefinitions
  • scene: SceneDefinition

Generated using TypeDoc