Jump to Content
WhitestormJS FrameworkGuidesIntegrationsBlog
GuidesIntegrationsBlog
GuidesIntegrationsBlogLog InModulesTry it on CodepenWhitestormJS Framework
Guides
Log InModulesTry it on Codepen
.loadMaterial(material)
These docs are for v1.2. Click to read the latest docs for v2-beta.x.

Tutorials

  • Getting Started
  • Basic sphere («Hello World» example)
  • Loops & 3D Animation
  • Debugging
  • Groups
    • Collision filtering
  • VirtualMouse. Cursor in 3D
  • 3D transforms
  • Usage with webpack
  • Variations

Core

  • World
  • Component
  • Element
  • MeshComponent
  • PhysicsComponent
  • SoftbodyComponent
  • LightComponent
  • CameraComponent

Components | Meshes

  • Box
  • Cylinder
  • Dodecahedron
  • Extrude
  • Icosahedron
  • Lathe
  • Line
  • Model
  • Morph
  • Octahedron
  • Parametric
  • Plane
  • Polyhedron
  • Ring
  • Shape
  • Sphere
  • Tetrahedron
  • Text
  • Torus
  • Torusknot
  • Tube

Components | Lights

  • AmbientLight
  • DirectionalLight
  • HemisphereLight
  • PointLight
  • SpotLight

Components | Camera

  • PerspectiveCamera
  • OrthographicCamera
  • CubeCamera

Components | Rendering

  • RenderingModule
    • BasicRendering
    • PostProcessor

Extras

  • Controls
    • OrbitControls
    • FirstPersonControls

API

  • .extend(object, ...extensions)
  • .loadMaterial(material)
  • .texture(url, options)
Powered by 

.loadMaterial(material)

Suggest Edits

Turns your material parameter and returns whs material object. This function checks for kind property and turns it into THREE.Material object.

If you pass a THREE.Material object there - it will return itself.

Updated less than a minute ago