StaticbackgroundStaticbackgroundStaticcanvasStaticcreateStatic OptionalerrorStaticfailedStatic OptionalloadingStatic OptionalloadingStaticorbitStatic OptionalrendererStaticresolutionStaticscenesStaticuseStaticambientStaticbackgroundStaticcameraStaticcontrolsStaticdirectionalStaticdirectionalStaticfirstStaticplaneStaticsceneStaticshadowStaticwellStatic_StaticaddAdds an instance to the renderer or updates it, add it again to update it after changes have been made
The instance that will be updated (the descendants will also update)
This is here just in case something requires it in the future
The scene the instances will be rendered in. Default RBXRenderer.firstScene
If descendants should also have addInstance called on them. Default true
StaticaddOnly ever set this to false if you know you will be rendering to a RenderTarget (for example thumbnail generation), otherwise color handling is incorrect
StaticanimateStaticanimateStaticboilerplateStaticcreateSets up the THREE.js renderer
Optionalcanvas: HTMLCanvasElementStaticcreateCreates canvasContainer
StaticcreateScenes now always have an effectComposer, to add post processing use the dedicated function RBXRendererScene.addPostProcessing()
This function disposes the original effectComposer and creates a new one, which adds a little overhead (probably) though it still adds post processing for backwards compatibility
StaticcreateStaticexportStaticfullFully sets up renderer with scene, camera and frame rendering
success
StaticgetStaticgetStaticgetThreeJS renderer
StaticgetStaticgetStaticgetStaticgetAn element containing the renderer canvas
StaticgetStaticremoveRemoves an instance from the renderer
StaticrenderStaticsetexample: 0x2b2d33 which is the default
StaticsetSets the background and ground's visibility, but not the shadowPlane
If the background and ground should be transparent
StaticsetStaticsetStaticsetStaticsetupSets up orbit controls
StaticsetupStaticsetupSets up a basic scene with lighting
"WellLit" is the default lighting for RoAvatar, "Thumbnail" tries to match the Roblox thumbnail lighting
Staticshow
A singleton, intialized by calling RBXRenderer.fullSetup()