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
Resource Types
Firtina Ozbalikci edited this page Jul 29, 2017
·
20 revisions
Wiki » Internal Components » Resource Types
Allows you to reuse entities, these help save a lot of memory
Place <resources></resources>; anywhere inside <React3/>, or any of its children.
The preferred place inside the parent is before any other component, since it's expensive to replace.
If this component is remounted, all of the resources will be recreated.
To use resources, please see:
- To be placed within a <mesh>
- To be placed within an <extrudeGeometry>
- To be placed within materials:
Then you can place these components inside to create and assign resources,
as long as they have a resourceId
property:
-
Internal Components:
-
Shapes:
- shape: Creates a THREE.Shape
-
Geometries:
- edgesGeometry: Creates a THREE.EdgesGeometry
- shapeGeometry: Creates a THREE.ShapeGeometry
- textGeometry: Creates a THREE.TextGeometry
- dodecahedronGeometry: Creates a THREE.DodecahedronGeometry
- tubeGeometry: Creates a THREE.TubeGeometry
- extrudeGeometry: Creates a THREE.ExtrudeGeometry
- torusKnotGeometry: Creates a THREE.TorusKnotGeometry
- torusGeometry: Creates a THREE.TorusGeometry
- latheGeometry: Creates a THREE.LatheGeometry
- cylinderGeometry: Creates a THREE.CylinderGeometry
- ringGeometry: Creates a THREE.RingGeometry
- circleBufferGeometry: Creates a THREE.CircleBufferGeometry
- circleGeometry: Creates a THREE.CircleGeometry
- tetrahedronGeometry: Creates a THREE.TetrahedronGeometry
- octahedronGeometry: Creates a THREE.OctahedronGeometry
- icosahedronGeometry: Creates a THREE.IcosahedronGeometry
- polyhedronGeometry: Creates a THREE.PolyhedronGeometry
- planeGeometry: Creates a THREE.PlaneGeometry
- planeBufferGeometry: Creates a THREE.PlaneBufferGeometry
- parametricGeometry: Creates a THREE.ParametricGeometry
- sphereGeometry: Creates a THREE.SphereGeometry
- boxGeometry: Creates a THREE.BoxGeometry
- bufferGeometry: Creates a THREE.BufferGeometry
- geometry: Creates a THREE.Geometry
-
Textures:
- texture: Creates a THREE.Texture
-
Materials:
- spriteMaterial: Creates a THREE.SpriteMaterial
- meshNormalMaterial: Creates a THREE.MeshNormalMaterial
- meshDepthMaterial: Creates a THREE.MeshDepthMaterial
- lineDashedMaterial: Creates a THREE.LineDashedMaterial
- lineBasicMaterial: Creates a THREE.LineBasicMaterial
- rawShaderMaterial: Creates a THREE.RawShaderMaterial.
- shaderMaterial: Creates a THREE.ShaderMaterial
- pointsMaterial: Creates a THREE.PointsMaterial
- meshStandardMaterial: Creates a THREE.MeshStandardMaterial
- meshLambertMaterial: Creates a THREE.MeshLambertMaterial
- meshPhongMaterial: Creates a THREE.MeshPhongMaterial
- meshBasicMaterial: Creates a THREE.MeshBasicMaterial
-
Shapes:
- 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
Home | Usage | API Reference | Examples