This repository has been archived by the owner on Jul 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 155
API Reference
Firtina Ozbalikci edited this page Jul 29, 2017
·
38 revisions
Wiki » API Reference
-
React3:
require('react-three-renderer')
- Module Entry Point -
Internal Components:
- Views:
-
Objects: Entities that can be added into a scene
- scene: Creates a THREE.Scene
- object3D: Creates a THREE.Object3D
- group: Creates a THREE.Group
-
Cameras:
- orthographicCamera: Creates a THREE.OrthographicCamera
- perspectiveCamera: Creates a THREE.PerspectiveCamera
- cubeCamera: Creates a THREE.CubeCamera
-
Meshes:
- mesh: Creates a THREE.Mesh
- line: Creates a THREE.Line
- lineSegments: Creates a THREE.LineSegments
- points: Creates a THREE.Points
- sprite: Creates a THREE.Sprite
- TODO:
- Bone
- LensFlare
- LOD
- MorphAnimMesh
- SkinnedMesh
- Skeleton
-
Lights:
- ambientLight: Creates a THREE.AmbientLight
- directionalLight: Creates a THREE.DirectionalLight
- spotLight: Creates a THREE.SpotLight
- pointLight: Creates a THREE.PointLight
- hemisphereLight: Creates a THREE.HemisphereLight
- TODO:
- Light
-
Helpers:
- cameraHelper: Creates a THREE.CameraHelper
- axisHelper: Creates a THREE.AxisHelper
- arrowHelper: Creates a THREE.ArrowHelper
- gridHelper: Creates a THREE.GridHelper
- TODO:
- BoundingBoxHelper
- BoxHelper
- DirectionalLightHelper
- EdgesHelper
- FaceNormalsHelper
- HemisphereLightHelper
- PointLightHelper
- SpotLightHelper
- VertexNormalsHelper
- WireframeHelper
-
Materials:
- meshBasicMaterial: Creates a THREE.MeshBasicMaterial
- meshPhongMaterial: Creates a THREE.MeshPhongMaterial
- meshLambertMaterial: Creates a THREE.MeshLambertMaterial
- meshDepthMaterial: Creates a THREE.MeshDepthMaterial
- meshNormalMaterial: Creates a THREE.MeshNormalMaterial
- pointsMaterial: Creates a THREE.PointsMaterial
- lineBasicMaterial: Creates a THREE.LineBasicMaterial
- lineDashedMaterial: Creates a THREE.LineDashedMaterial
- spriteMaterial: Creates a THREE.SpriteMaterial
-
shaderMaterial: Creates a THREE.ShaderMaterial
-
uniforms: A container for THREE.ShaderMaterial#uniforms.
- uniform: A single uniform value for a shader material.
-
uniforms: A container for THREE.ShaderMaterial#uniforms.
- rawShaderMaterial: Creates a THREE.RawShaderMaterial.
- meshStandardMaterial: Creates a THREE.MeshStandardMaterial
- TODO:
- Material
- MeshFaceMaterial
- MultiMaterial
- SpriteCanvasMaterial
- SpriteMaterial
-
Textures:
- texture: Creates a THREE.Texture
- TODO:
- CubeTexture
- CompressedTexture
- DataTexture
-
Geometries:
- geometry: Creates a THREE.Geometry
- bufferGeometry: Creates a THREE.BufferGeometry
- boxGeometry: Creates a THREE.BoxGeometry
- sphereGeometry: Creates a THREE.SphereGeometry
- parametricGeometry: Creates a THREE.ParametricGeometry
- planeBufferGeometry: Creates a THREE.PlaneBufferGeometry
- planeGeometry: Creates a THREE.PlaneGeometry
- polyhedronGeometry: Creates a THREE.PolyhedronGeometry
- icosahedronGeometry: Creates a THREE.IcosahedronGeometry
- octahedronGeometry: Creates a THREE.OctahedronGeometry
- tetrahedronGeometry: Creates a THREE.TetrahedronGeometry
- circleGeometry: Creates a THREE.CircleGeometry
- circleBufferGeometry: Creates a THREE.CircleBufferGeometry
- ringGeometry: Creates a THREE.RingGeometry
- cylinderGeometry: Creates a THREE.CylinderGeometry
- latheGeometry: Creates a THREE.LatheGeometry
- torusGeometry: Creates a THREE.TorusGeometry
- torusKnotGeometry: Creates a THREE.TorusKnotGeometry
- extrudeGeometry: Creates a THREE.ExtrudeGeometry
- tubeGeometry: Creates a THREE.TubeGeometry
- dodecahedronGeometry: Creates a THREE.DodecahedronGeometry
- textGeometry: Creates a THREE.TextGeometry
- shapeGeometry: Creates a THREE.ShapeGeometry
- edgesGeometry: Creates a THREE.EdgesGeometry
- TODO:
- CubeGeometry
-
Shapes:
-
shape: Creates a THREE.Shape
- moveTo: Calls THREE.Path#moveTo on the parent shape
- lineTo: Calls THREE.Path#lineTo on the parent shape
- bezierCurveTo: Calls THREE.Path#bezierCurveTo on the parent shape
- quadraticCurveTo: Calls THREE.Path#quadraticCurveTo on the parent shape
- absArc: Calls THREE.Path#absArc on the parent shape
- absEllipse: Calls THREE.Path#absEllipse on the parent shape
- splineThru: Calls THREE.Path#splineThru on the parent shape
- hole: Adds a hole into a parent shape, see THREE.Shape#holes
- TODO:
- Curve
- CurvePath
- Gyroscope
- Path
-
shape: Creates a THREE.Shape
-
Resource Types: Allows you to reuse entities, these help save a lot of memory
- resources: Resource Container
- materialResource: Reference to a material resource
- textureResource: Reference to a texture resource
- geometryResource: Reference to a geometry resource.
- shapeResource: Reference to a shape resource
- shapeGeometryResource: Creates a geometry using a shape resource
- Advanced: If you feel like having custom experiences, this one is for you
- React3Renderer: Equivalent to react-dom.
Home | Usage | API Reference | Examples