@vyr/three 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -25
- package/build/actor/ComposerServiceActor.d.ts +0 -23
- package/build/actor/ComposerServiceActor.js +0 -93
- package/build/actor/ComposerServiceActor.js.map +0 -1
- package/build/actor/GeometryActor.d.ts +0 -7
- package/build/actor/GeometryActor.js +0 -10
- package/build/actor/GeometryActor.js.map +0 -1
- package/build/actor/HTMLConvertActor.d.ts +0 -14
- package/build/actor/HTMLConvertActor.js +0 -52
- package/build/actor/HTMLConvertActor.js.map +0 -1
- package/build/actor/MaterialActor.d.ts +0 -7
- package/build/actor/MaterialActor.js +0 -10
- package/build/actor/MaterialActor.js.map +0 -1
- package/build/actor/NodeActor.d.ts +0 -9
- package/build/actor/NodeActor.js +0 -21
- package/build/actor/NodeActor.js.map +0 -1
- package/build/actor/OrbitControllerActor.d.ts +0 -20
- package/build/actor/OrbitControllerActor.js +0 -103
- package/build/actor/OrbitControllerActor.js.map +0 -1
- package/build/actor/PassActor.d.ts +0 -8
- package/build/actor/PassActor.js +0 -16
- package/build/actor/PassActor.js.map +0 -1
- package/build/actor/SceneServiceActor.d.ts +0 -21
- package/build/actor/SceneServiceActor.js +0 -112
- package/build/actor/SceneServiceActor.js.map +0 -1
- package/build/actor/TextureActor.d.ts +0 -7
- package/build/actor/TextureActor.js +0 -10
- package/build/actor/TextureActor.js.map +0 -1
- package/build/actor/TransformControllerActor.d.ts +0 -10
- package/build/actor/TransformControllerActor.js +0 -19
- package/build/actor/TransformControllerActor.js.map +0 -1
- package/build/actor/index.d.ts +0 -8
- package/build/actor/index.js +0 -11
- package/build/actor/index.js.map +0 -1
- package/build/asset/index.d.ts +0 -1
- package/build/asset/index.js +0 -219
- package/build/asset/index.js.map +0 -1
- package/build/controls/CameraControls.d.ts +0 -647
- package/build/controls/CameraControls.js +0 -2332
- package/build/controls/CameraControls.js.map +0 -1
- package/build/controls/TransformControls.d.ts +0 -72
- package/build/controls/TransformControls.js +0 -1359
- package/build/controls/TransformControls.js.map +0 -1
- package/build/controls/index.d.ts +0 -2
- package/build/controls/index.js +0 -3
- package/build/controls/index.js.map +0 -1
- package/build/descriptor/ComposerServiceDescriptor.d.ts +0 -33
- package/build/descriptor/ComposerServiceDescriptor.js +0 -42
- package/build/descriptor/ComposerServiceDescriptor.js.map +0 -1
- package/build/descriptor/GeoMapDescriptor.d.ts +0 -12
- package/build/descriptor/GeoMapDescriptor.js +0 -22
- package/build/descriptor/GeoMapDescriptor.js.map +0 -1
- package/build/descriptor/HTMLConvertDescriptor.d.ts +0 -6
- package/build/descriptor/HTMLConvertDescriptor.js +0 -10
- package/build/descriptor/HTMLConvertDescriptor.js.map +0 -1
- package/build/descriptor/InstancedMeshDescriptor.d.ts +0 -12
- package/build/descriptor/InstancedMeshDescriptor.js +0 -12
- package/build/descriptor/InstancedMeshDescriptor.js.map +0 -1
- package/build/descriptor/MeshDescriptor.d.ts +0 -8
- package/build/descriptor/MeshDescriptor.js +0 -14
- package/build/descriptor/MeshDescriptor.js.map +0 -1
- package/build/descriptor/ModelDescriptor.d.ts +0 -7
- package/build/descriptor/ModelDescriptor.js +0 -12
- package/build/descriptor/ModelDescriptor.js.map +0 -1
- package/build/descriptor/OrbitControllerDescriptor.d.ts +0 -54
- package/build/descriptor/OrbitControllerDescriptor.js +0 -73
- package/build/descriptor/OrbitControllerDescriptor.js.map +0 -1
- package/build/descriptor/OrthographicCameraDescriptor.d.ts +0 -6
- package/build/descriptor/OrthographicCameraDescriptor.js +0 -10
- package/build/descriptor/OrthographicCameraDescriptor.js.map +0 -1
- package/build/descriptor/ParticleDescriptor.d.ts +0 -55
- package/build/descriptor/ParticleDescriptor.js +0 -85
- package/build/descriptor/ParticleDescriptor.js.map +0 -1
- package/build/descriptor/PassDescriptor.d.ts +0 -16
- package/build/descriptor/PassDescriptor.js +0 -23
- package/build/descriptor/PassDescriptor.js.map +0 -1
- package/build/descriptor/PerspectiveCameraDescriptor.d.ts +0 -7
- package/build/descriptor/PerspectiveCameraDescriptor.js +0 -12
- package/build/descriptor/PerspectiveCameraDescriptor.js.map +0 -1
- package/build/descriptor/PointsDescriptor.d.ts +0 -8
- package/build/descriptor/PointsDescriptor.js +0 -14
- package/build/descriptor/PointsDescriptor.js.map +0 -1
- package/build/descriptor/SceneServiceDescriptor.d.ts +0 -20
- package/build/descriptor/SceneServiceDescriptor.js +0 -35
- package/build/descriptor/SceneServiceDescriptor.js.map +0 -1
- package/build/descriptor/SpriteDescriptor.d.ts +0 -8
- package/build/descriptor/SpriteDescriptor.js +0 -14
- package/build/descriptor/SpriteDescriptor.js.map +0 -1
- package/build/descriptor/TextDescriptor.d.ts +0 -21
- package/build/descriptor/TextDescriptor.js +0 -37
- package/build/descriptor/TextDescriptor.js.map +0 -1
- package/build/descriptor/TransformControllerDescriptor.d.ts +0 -20
- package/build/descriptor/TransformControllerDescriptor.js +0 -22
- package/build/descriptor/TransformControllerDescriptor.js.map +0 -1
- package/build/descriptor/animation/AnimationActionDescriptor.d.ts +0 -27
- package/build/descriptor/animation/AnimationActionDescriptor.js +0 -46
- package/build/descriptor/animation/AnimationActionDescriptor.js.map +0 -1
- package/build/descriptor/geometry/BoxGeometryDescriptor.d.ts +0 -14
- package/build/descriptor/geometry/BoxGeometryDescriptor.js +0 -23
- package/build/descriptor/geometry/BoxGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/BufferGeometryDescriptor.d.ts +0 -8
- package/build/descriptor/geometry/BufferGeometryDescriptor.js +0 -12
- package/build/descriptor/geometry/BufferGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/CircleGeometryDescriptor.d.ts +0 -12
- package/build/descriptor/geometry/CircleGeometryDescriptor.js +0 -19
- package/build/descriptor/geometry/CircleGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/CylinderGeometryDescriptor.d.ts +0 -16
- package/build/descriptor/geometry/CylinderGeometryDescriptor.js +0 -27
- package/build/descriptor/geometry/CylinderGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.d.ts +0 -18
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.js +0 -33
- package/build/descriptor/geometry/ExtrudeGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/GeometryDescriptor.d.ts +0 -5
- package/build/descriptor/geometry/GeometryDescriptor.js +0 -7
- package/build/descriptor/geometry/GeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/PlaneGeometryDescriptor.d.ts +0 -12
- package/build/descriptor/geometry/PlaneGeometryDescriptor.js +0 -19
- package/build/descriptor/geometry/PlaneGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/RingGeometryDescriptor.d.ts +0 -14
- package/build/descriptor/geometry/RingGeometryDescriptor.js +0 -23
- package/build/descriptor/geometry/RingGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/SphereGeometryDescriptor.d.ts +0 -14
- package/build/descriptor/geometry/SphereGeometryDescriptor.js +0 -24
- package/build/descriptor/geometry/SphereGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.d.ts +0 -8
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.js +0 -12
- package/build/descriptor/geometry/SurfaceGeometryDescriptor.js.map +0 -1
- package/build/descriptor/geometry/TubeGeometryDescriptor.d.ts +0 -13
- package/build/descriptor/geometry/TubeGeometryDescriptor.js +0 -23
- package/build/descriptor/geometry/TubeGeometryDescriptor.js.map +0 -1
- package/build/descriptor/helper/AxesHelperDescriptor.d.ts +0 -5
- package/build/descriptor/helper/AxesHelperDescriptor.js +0 -7
- package/build/descriptor/helper/AxesHelperDescriptor.js.map +0 -1
- package/build/descriptor/index.d.ts +0 -43
- package/build/descriptor/index.js +0 -46
- package/build/descriptor/index.js.map +0 -1
- package/build/descriptor/light/AmbientLightDescriptor.d.ts +0 -5
- package/build/descriptor/light/AmbientLightDescriptor.js +0 -7
- package/build/descriptor/light/AmbientLightDescriptor.js.map +0 -1
- package/build/descriptor/light/DirectionalLightDescriptor.d.ts +0 -20
- package/build/descriptor/light/DirectionalLightDescriptor.js +0 -21
- package/build/descriptor/light/DirectionalLightDescriptor.js.map +0 -1
- package/build/descriptor/light/HemisphereLightDescriptor.d.ts +0 -8
- package/build/descriptor/light/HemisphereLightDescriptor.js +0 -12
- package/build/descriptor/light/HemisphereLightDescriptor.js.map +0 -1
- package/build/descriptor/light/LightDescriptor.d.ts +0 -8
- package/build/descriptor/light/LightDescriptor.js +0 -14
- package/build/descriptor/light/LightDescriptor.js.map +0 -1
- package/build/descriptor/light/PointLightDescriptor.d.ts +0 -15
- package/build/descriptor/light/PointLightDescriptor.js +0 -21
- package/build/descriptor/light/PointLightDescriptor.js.map +0 -1
- package/build/descriptor/light/RectAreaLightDescriptor.d.ts +0 -10
- package/build/descriptor/light/RectAreaLightDescriptor.js +0 -16
- package/build/descriptor/light/RectAreaLightDescriptor.js.map +0 -1
- package/build/descriptor/light/SpotLightDescriptor.d.ts +0 -18
- package/build/descriptor/light/SpotLightDescriptor.js +0 -27
- package/build/descriptor/light/SpotLightDescriptor.js.map +0 -1
- package/build/descriptor/material/MaterialDescriptor.d.ts +0 -54
- package/build/descriptor/material/MaterialDescriptor.js +0 -73
- package/build/descriptor/material/MaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/MeshBasicMaterialDescriptor.d.ts +0 -35
- package/build/descriptor/material/MeshBasicMaterialDescriptor.js +0 -51
- package/build/descriptor/material/MeshBasicMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/MeshPhongMaterialDescriptor.d.ts +0 -65
- package/build/descriptor/material/MeshPhongMaterialDescriptor.js +0 -98
- package/build/descriptor/material/MeshPhongMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/MeshStandardMaterialDescriptor.d.ts +0 -63
- package/build/descriptor/material/MeshStandardMaterialDescriptor.js +0 -95
- package/build/descriptor/material/MeshStandardMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/PointsMaterialDescriptor.d.ts +0 -19
- package/build/descriptor/material/PointsMaterialDescriptor.js +0 -29
- package/build/descriptor/material/PointsMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/ShaderMaterialDescriptor.d.ts +0 -24
- package/build/descriptor/material/ShaderMaterialDescriptor.js +0 -26
- package/build/descriptor/material/ShaderMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/ShadowMaterialDescriptor.d.ts +0 -11
- package/build/descriptor/material/ShadowMaterialDescriptor.js +0 -17
- package/build/descriptor/material/ShadowMaterialDescriptor.js.map +0 -1
- package/build/descriptor/material/SpriteMaterialDescriptor.d.ts +0 -19
- package/build/descriptor/material/SpriteMaterialDescriptor.js +0 -29
- package/build/descriptor/material/SpriteMaterialDescriptor.js.map +0 -1
- package/build/descriptor/texture/TextureDescriptor.d.ts +0 -80
- package/build/descriptor/texture/TextureDescriptor.js +0 -103
- package/build/descriptor/texture/TextureDescriptor.js.map +0 -1
- package/build/index.d.ts +0 -9
- package/build/index.js +0 -10
- package/build/index.js.map +0 -1
- package/build/interpreter/ComposerServiceInterpreter.d.ts +0 -0
- package/build/interpreter/ComposerServiceInterpreter.js +0 -22
- package/build/interpreter/ComposerServiceInterpreter.js.map +0 -1
- package/build/interpreter/GeoMapInterpreter.d.ts +0 -36
- package/build/interpreter/GeoMapInterpreter.js +0 -216
- package/build/interpreter/GeoMapInterpreter.js.map +0 -1
- package/build/interpreter/HTMLConvertInterpreter.d.ts +0 -12
- package/build/interpreter/HTMLConvertInterpreter.js +0 -25
- package/build/interpreter/HTMLConvertInterpreter.js.map +0 -1
- package/build/interpreter/InstancedMeshInterpreter.d.ts +0 -19
- package/build/interpreter/InstancedMeshInterpreter.js +0 -67
- package/build/interpreter/InstancedMeshInterpreter.js.map +0 -1
- package/build/interpreter/MeshInterpreter.d.ts +0 -9
- package/build/interpreter/MeshInterpreter.js +0 -21
- package/build/interpreter/MeshInterpreter.js.map +0 -1
- package/build/interpreter/ModelInterpreter.d.ts +0 -16
- package/build/interpreter/ModelInterpreter.js +0 -52
- package/build/interpreter/ModelInterpreter.js.map +0 -1
- package/build/interpreter/NodeInterpreter.d.ts +0 -18
- package/build/interpreter/NodeInterpreter.js +0 -53
- package/build/interpreter/NodeInterpreter.js.map +0 -1
- package/build/interpreter/OrbitControllerInterpreter.d.ts +0 -13
- package/build/interpreter/OrbitControllerInterpreter.js +0 -38
- package/build/interpreter/OrbitControllerInterpreter.js.map +0 -1
- package/build/interpreter/OrthographicCameraInterpreter.d.ts +0 -8
- package/build/interpreter/OrthographicCameraInterpreter.js +0 -9
- package/build/interpreter/OrthographicCameraInterpreter.js.map +0 -1
- package/build/interpreter/ParticleInterpreter.d.ts +0 -24
- package/build/interpreter/ParticleInterpreter.js +0 -180
- package/build/interpreter/ParticleInterpreter.js.map +0 -1
- package/build/interpreter/PassInterpreter.d.ts +0 -0
- package/build/interpreter/PassInterpreter.js +0 -36
- package/build/interpreter/PassInterpreter.js.map +0 -1
- package/build/interpreter/PerspectiveCameraInterpreter.d.ts +0 -13
- package/build/interpreter/PerspectiveCameraInterpreter.js +0 -26
- package/build/interpreter/PerspectiveCameraInterpreter.js.map +0 -1
- package/build/interpreter/PointsInterpreter.d.ts +0 -17
- package/build/interpreter/PointsInterpreter.js +0 -54
- package/build/interpreter/PointsInterpreter.js.map +0 -1
- package/build/interpreter/SceneServiceInterpreter.d.ts +0 -27
- package/build/interpreter/SceneServiceInterpreter.js +0 -95
- package/build/interpreter/SceneServiceInterpreter.js.map +0 -1
- package/build/interpreter/ServiceSchedulerInterpreter.d.ts +0 -9
- package/build/interpreter/ServiceSchedulerInterpreter.js +0 -19
- package/build/interpreter/ServiceSchedulerInterpreter.js.map +0 -1
- package/build/interpreter/SpriteInterpreter.d.ts +0 -14
- package/build/interpreter/SpriteInterpreter.js +0 -38
- package/build/interpreter/SpriteInterpreter.js.map +0 -1
- package/build/interpreter/TextInterpreter.d.ts +0 -16
- package/build/interpreter/TextInterpreter.js +0 -68
- package/build/interpreter/TextInterpreter.js.map +0 -1
- package/build/interpreter/TransformControllerInterpreter.d.ts +0 -12
- package/build/interpreter/TransformControllerInterpreter.js +0 -36
- package/build/interpreter/TransformControllerInterpreter.js.map +0 -1
- package/build/interpreter/animation/AnimationActionInterpreter.d.ts +0 -13
- package/build/interpreter/animation/AnimationActionInterpreter.js +0 -57
- package/build/interpreter/animation/AnimationActionInterpreter.js.map +0 -1
- package/build/interpreter/geometry/BoxGeometryInterpreter.d.ts +0 -12
- package/build/interpreter/geometry/BoxGeometryInterpreter.js +0 -29
- package/build/interpreter/geometry/BoxGeometryInterpreter.js.map +0 -1
- package/build/interpreter/geometry/BufferGeometryInterpreter.d.ts +0 -13
- package/build/interpreter/geometry/BufferGeometryInterpreter.js +0 -43
- package/build/interpreter/geometry/BufferGeometryInterpreter.js.map +0 -1
- package/build/interpreter/geometry/CircleGeometryInterpreter.d.ts +0 -12
- package/build/interpreter/geometry/CircleGeometryInterpreter.js +0 -29
- package/build/interpreter/geometry/CircleGeometryInterpreter.js.map +0 -1
- package/build/interpreter/geometry/CylinderGeometryInterpreter.d.ts +0 -12
- package/build/interpreter/geometry/CylinderGeometryInterpreter.js +0 -29
- package/build/interpreter/geometry/CylinderGeometryInterpreter.js.map +0 -1
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.d.ts +0 -13
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.js +0 -48
- package/build/interpreter/geometry/ExtrudeGeometryInterpreter.js.map +0 -1
- package/build/interpreter/geometry/PlaneGeometryInterpreter.d.ts +0 -12
- package/build/interpreter/geometry/PlaneGeometryInterpreter.js +0 -29
- package/build/interpreter/geometry/PlaneGeometryInterpreter.js.map +0 -1
- package/build/interpreter/geometry/RingGeometryInterpreter.d.ts +0 -12
- package/build/interpreter/geometry/RingGeometryInterpreter.js +0 -29
- package/build/interpreter/geometry/RingGeometryInterpreter.js.map +0 -1
- package/build/interpreter/geometry/SphereGeometryInterpreter.d.ts +0 -12
- package/build/interpreter/geometry/SphereGeometryInterpreter.js +0 -29
- package/build/interpreter/geometry/SphereGeometryInterpreter.js.map +0 -1
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.d.ts +0 -16
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.js +0 -29
- package/build/interpreter/geometry/SurfaceGeometryInterpreter.js.map +0 -1
- package/build/interpreter/geometry/TubeGeometryInterpreter.d.ts +0 -13
- package/build/interpreter/geometry/TubeGeometryInterpreter.js +0 -36
- package/build/interpreter/geometry/TubeGeometryInterpreter.js.map +0 -1
- package/build/interpreter/helper/AxesHelperInterpreter.d.ts +0 -12
- package/build/interpreter/helper/AxesHelperInterpreter.js +0 -32
- package/build/interpreter/helper/AxesHelperInterpreter.js.map +0 -1
- package/build/interpreter/index.d.ts +0 -43
- package/build/interpreter/index.js +0 -46
- package/build/interpreter/index.js.map +0 -1
- package/build/interpreter/light/AmbientLightInterpreter.d.ts +0 -13
- package/build/interpreter/light/AmbientLightInterpreter.js +0 -24
- package/build/interpreter/light/AmbientLightInterpreter.js.map +0 -1
- package/build/interpreter/light/DirectionalLightInterpreter.d.ts +0 -16
- package/build/interpreter/light/DirectionalLightInterpreter.js +0 -75
- package/build/interpreter/light/DirectionalLightInterpreter.js.map +0 -1
- package/build/interpreter/light/HemisphereLightInterpreter.d.ts +0 -13
- package/build/interpreter/light/HemisphereLightInterpreter.js +0 -25
- package/build/interpreter/light/HemisphereLightInterpreter.js.map +0 -1
- package/build/interpreter/light/PointLightInterpreter.d.ts +0 -14
- package/build/interpreter/light/PointLightInterpreter.js +0 -37
- package/build/interpreter/light/PointLightInterpreter.js.map +0 -1
- package/build/interpreter/light/RectAreaLightInterpreter.d.ts +0 -13
- package/build/interpreter/light/RectAreaLightInterpreter.js +0 -27
- package/build/interpreter/light/RectAreaLightInterpreter.js.map +0 -1
- package/build/interpreter/light/SpotLightInterpreter.d.ts +0 -15
- package/build/interpreter/light/SpotLightInterpreter.js +0 -63
- package/build/interpreter/light/SpotLightInterpreter.js.map +0 -1
- package/build/interpreter/material/MaterialInterpreter.d.ts +0 -9
- package/build/interpreter/material/MaterialInterpreter.js +0 -28
- package/build/interpreter/material/MaterialInterpreter.js.map +0 -1
- package/build/interpreter/material/MeshBasicMaterialInterpreter.d.ts +0 -11
- package/build/interpreter/material/MeshBasicMaterialInterpreter.js +0 -37
- package/build/interpreter/material/MeshBasicMaterialInterpreter.js.map +0 -1
- package/build/interpreter/material/MeshPhongMaterialInterpreter.d.ts +0 -11
- package/build/interpreter/material/MeshPhongMaterialInterpreter.js +0 -56
- package/build/interpreter/material/MeshPhongMaterialInterpreter.js.map +0 -1
- package/build/interpreter/material/MeshStandardMaterialInterpreter.d.ts +0 -11
- package/build/interpreter/material/MeshStandardMaterialInterpreter.js +0 -52
- package/build/interpreter/material/MeshStandardMaterialInterpreter.js.map +0 -1
- package/build/interpreter/material/PointsMaterialInterpreter.d.ts +0 -11
- package/build/interpreter/material/PointsMaterialInterpreter.js +0 -30
- package/build/interpreter/material/PointsMaterialInterpreter.js.map +0 -1
- package/build/interpreter/material/ShaderMaterialInterpreter.d.ts +0 -14
- package/build/interpreter/material/ShaderMaterialInterpreter.js +0 -46
- package/build/interpreter/material/ShaderMaterialInterpreter.js.map +0 -1
- package/build/interpreter/material/ShadowMaterialInterpreter.d.ts +0 -11
- package/build/interpreter/material/ShadowMaterialInterpreter.js +0 -25
- package/build/interpreter/material/ShadowMaterialInterpreter.js.map +0 -1
- package/build/interpreter/material/SpriteMaterialInterpreter.d.ts +0 -11
- package/build/interpreter/material/SpriteMaterialInterpreter.js +0 -30
- package/build/interpreter/material/SpriteMaterialInterpreter.js.map +0 -1
- package/build/interpreter/texture/TextureInterpreter.d.ts +0 -13
- package/build/interpreter/texture/TextureInterpreter.js +0 -54
- package/build/interpreter/texture/TextureInterpreter.js.map +0 -1
- package/build/locale/Language.d.ts +0 -3
- package/build/locale/Language.js +0 -6
- package/build/locale/Language.js.map +0 -1
- package/build/locale/LanguageProvider.d.ts +0 -6
- package/build/locale/LanguageProvider.js +0 -7
- package/build/locale/LanguageProvider.js.map +0 -1
- package/build/locale/index.d.ts +0 -2
- package/build/locale/index.js +0 -3
- package/build/locale/index.js.map +0 -1
- package/build/preset/execute/GeoMap/drilldown.d.ts +0 -16
- package/build/preset/execute/GeoMap/drilldown.js +0 -45
- package/build/preset/execute/GeoMap/drilldown.js.map +0 -1
- package/build/preset/execute/GeoMap/index.d.ts +0 -1
- package/build/preset/execute/GeoMap/index.js +0 -2
- package/build/preset/execute/GeoMap/index.js.map +0 -1
- package/build/preset/execute/index.d.ts +0 -1
- package/build/preset/execute/index.js +0 -2
- package/build/preset/execute/index.js.map +0 -1
- package/build/preset/index.d.ts +0 -3
- package/build/preset/index.js +0 -4
- package/build/preset/index.js.map +0 -1
- package/build/preset/interaction/GeoMap/drilldown.d.ts +0 -5
- package/build/preset/interaction/GeoMap/drilldown.js +0 -19
- package/build/preset/interaction/GeoMap/drilldown.js.map +0 -1
- package/build/preset/interaction/GeoMap/index.d.ts +0 -1
- package/build/preset/interaction/GeoMap/index.js +0 -2
- package/build/preset/interaction/GeoMap/index.js.map +0 -1
- package/build/preset/interaction/index.d.ts +0 -1
- package/build/preset/interaction/index.js +0 -2
- package/build/preset/interaction/index.js.map +0 -1
- package/build/utils/dispose/index.d.ts +0 -3
- package/build/utils/dispose/index.js +0 -22
- package/build/utils/dispose/index.js.map +0 -1
- package/build/utils/geometry/index.d.ts +0 -19
- package/build/utils/geometry/index.js +0 -61
- package/build/utils/geometry/index.js.map +0 -1
- package/build/utils/index.d.ts +0 -7
- package/build/utils/index.js +0 -8
- package/build/utils/index.js.map +0 -1
- package/build/utils/material/index.d.ts +0 -7
- package/build/utils/material/index.js +0 -46
- package/build/utils/material/index.js.map +0 -1
- package/build/utils/pickup/index.d.ts +0 -5
- package/build/utils/pickup/index.js +0 -14
- package/build/utils/pickup/index.js.map +0 -1
- package/build/utils/random/index.d.ts +0 -2
- package/build/utils/random/index.js +0 -5
- package/build/utils/random/index.js.map +0 -1
- package/build/utils/text/index.d.ts +0 -98
- package/build/utils/text/index.js +0 -379
- package/build/utils/text/index.js.map +0 -1
- package/build/utils/texture/index.d.ts +0 -4
- package/build/utils/texture/index.js +0 -17
- package/build/utils/texture/index.js.map +0 -1
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Vector2 } from "@vyr/engine";
|
|
2
|
-
import { LightDescriptor } from "./LightDescriptor";
|
|
3
|
-
class SpotLightDescriptor extends LightDescriptor {
|
|
4
|
-
static type = 'SpotLight';
|
|
5
|
-
angle;
|
|
6
|
-
decay;
|
|
7
|
-
distance;
|
|
8
|
-
penumbra;
|
|
9
|
-
power;
|
|
10
|
-
target;
|
|
11
|
-
mapSize;
|
|
12
|
-
camera;
|
|
13
|
-
constructor(descriptor = {}) {
|
|
14
|
-
super(descriptor);
|
|
15
|
-
this.angle = descriptor.angle ?? Math.PI / 3;
|
|
16
|
-
this.decay = descriptor.decay ?? 2;
|
|
17
|
-
this.distance = descriptor.distance ?? 0;
|
|
18
|
-
this.penumbra = descriptor.penumbra ?? 0;
|
|
19
|
-
this.power = descriptor.power ?? 1;
|
|
20
|
-
this.target = descriptor.target ?? '';
|
|
21
|
-
this.mapSize = descriptor.mapSize ? Vector2.create(descriptor.mapSize) : Vector2.create(512, 512);
|
|
22
|
-
this.camera = descriptor.camera ? LightDescriptor.deepClone(descriptor.camera) : { near: 0.5, far: 500 };
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
LightDescriptor.register(SpotLightDescriptor);
|
|
26
|
-
export { SpotLightDescriptor };
|
|
27
|
-
//# sourceMappingURL=SpotLightDescriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpotLightDescriptor.js","sourceRoot":"","sources":["../../../src/descriptor/light/SpotLightDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,m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54 +0,0 @@
|
|
|
1
|
-
import { Descriptor, DeserializationObject } from '@vyr/engine';
|
|
2
|
-
declare enum MaterialSide {
|
|
3
|
-
FrontSide,
|
|
4
|
-
BackSide,
|
|
5
|
-
DoubleSide
|
|
6
|
-
}
|
|
7
|
-
declare enum MaterialDepthFunc {
|
|
8
|
-
NeverDepth,
|
|
9
|
-
AlwaysDepth,
|
|
10
|
-
LessDepth,
|
|
11
|
-
LessEqualDepth,
|
|
12
|
-
GreaterEqualDepth,
|
|
13
|
-
GreaterDepth,
|
|
14
|
-
NotEqualDepth
|
|
15
|
-
}
|
|
16
|
-
declare enum MaterialDlending {
|
|
17
|
-
NoBlending,
|
|
18
|
-
NormalBlending,
|
|
19
|
-
AdditiveBlending,
|
|
20
|
-
SubtractiveBlending,
|
|
21
|
-
MultiplyBlending
|
|
22
|
-
}
|
|
23
|
-
declare enum MaterialCombine {
|
|
24
|
-
MultiplyOperation,
|
|
25
|
-
MixOperation,
|
|
26
|
-
AddOperation
|
|
27
|
-
}
|
|
28
|
-
declare enum MaterialNormalMapType {
|
|
29
|
-
TangentSpaceNormalMap,
|
|
30
|
-
ObjectSpaceNormalMap
|
|
31
|
-
}
|
|
32
|
-
declare class MaterialDescriptor extends Descriptor {
|
|
33
|
-
static type: string;
|
|
34
|
-
/**透明度测试 */
|
|
35
|
-
alphaTest: number;
|
|
36
|
-
/**材质是否透明 */
|
|
37
|
-
transparent: boolean;
|
|
38
|
-
/**材质类型 */
|
|
39
|
-
side: MaterialSide;
|
|
40
|
-
/**是否渲染材质的颜色 */
|
|
41
|
-
colorWrite: boolean;
|
|
42
|
-
/**是否启用深度测试 */
|
|
43
|
-
depthTest: boolean;
|
|
44
|
-
/**是否写入深度 */
|
|
45
|
-
depthrWrite: boolean;
|
|
46
|
-
/**深度函数*/
|
|
47
|
-
depthFunc: MaterialDepthFunc;
|
|
48
|
-
/** 混合函数,混合效果见 https://threejs.org/examples/#webgl_materials_blending */
|
|
49
|
-
blending: MaterialDlending;
|
|
50
|
-
/**是否使用顶点着色 */
|
|
51
|
-
vertexColors: boolean;
|
|
52
|
-
constructor(descriptor?: Partial<DeserializationObject<MaterialDescriptor>>);
|
|
53
|
-
}
|
|
54
|
-
export { MaterialSide, MaterialDepthFunc, MaterialDlending, MaterialCombine, MaterialNormalMapType, MaterialDescriptor, };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as THREE from 'three';
|
|
2
|
-
import { Descriptor } from '@vyr/engine';
|
|
3
|
-
var MaterialSide;
|
|
4
|
-
(function (MaterialSide) {
|
|
5
|
-
MaterialSide[MaterialSide["FrontSide"] = THREE.FrontSide] = "FrontSide";
|
|
6
|
-
MaterialSide[MaterialSide["BackSide"] = THREE.BackSide] = "BackSide";
|
|
7
|
-
MaterialSide[MaterialSide["DoubleSide"] = THREE.DoubleSide] = "DoubleSide";
|
|
8
|
-
})(MaterialSide || (MaterialSide = {}));
|
|
9
|
-
var MaterialDepthFunc;
|
|
10
|
-
(function (MaterialDepthFunc) {
|
|
11
|
-
MaterialDepthFunc[MaterialDepthFunc["NeverDepth"] = THREE.NeverDepth] = "NeverDepth";
|
|
12
|
-
MaterialDepthFunc[MaterialDepthFunc["AlwaysDepth"] = THREE.AlwaysDepth] = "AlwaysDepth";
|
|
13
|
-
MaterialDepthFunc[MaterialDepthFunc["LessDepth"] = THREE.LessDepth] = "LessDepth";
|
|
14
|
-
MaterialDepthFunc[MaterialDepthFunc["LessEqualDepth"] = THREE.LessEqualDepth] = "LessEqualDepth";
|
|
15
|
-
MaterialDepthFunc[MaterialDepthFunc["GreaterEqualDepth"] = THREE.GreaterEqualDepth] = "GreaterEqualDepth";
|
|
16
|
-
MaterialDepthFunc[MaterialDepthFunc["GreaterDepth"] = THREE.GreaterDepth] = "GreaterDepth";
|
|
17
|
-
MaterialDepthFunc[MaterialDepthFunc["NotEqualDepth"] = THREE.NotEqualDepth] = "NotEqualDepth";
|
|
18
|
-
})(MaterialDepthFunc || (MaterialDepthFunc = {}));
|
|
19
|
-
var MaterialDlending;
|
|
20
|
-
(function (MaterialDlending) {
|
|
21
|
-
MaterialDlending[MaterialDlending["NoBlending"] = THREE.NoBlending] = "NoBlending";
|
|
22
|
-
MaterialDlending[MaterialDlending["NormalBlending"] = THREE.NormalBlending] = "NormalBlending";
|
|
23
|
-
MaterialDlending[MaterialDlending["AdditiveBlending"] = THREE.AdditiveBlending] = "AdditiveBlending";
|
|
24
|
-
MaterialDlending[MaterialDlending["SubtractiveBlending"] = THREE.SubtractiveBlending] = "SubtractiveBlending";
|
|
25
|
-
MaterialDlending[MaterialDlending["MultiplyBlending"] = THREE.MultiplyBlending] = "MultiplyBlending";
|
|
26
|
-
})(MaterialDlending || (MaterialDlending = {}));
|
|
27
|
-
var MaterialCombine;
|
|
28
|
-
(function (MaterialCombine) {
|
|
29
|
-
MaterialCombine[MaterialCombine["MultiplyOperation"] = THREE.MultiplyOperation] = "MultiplyOperation";
|
|
30
|
-
MaterialCombine[MaterialCombine["MixOperation"] = THREE.MixOperation] = "MixOperation";
|
|
31
|
-
MaterialCombine[MaterialCombine["AddOperation"] = THREE.AddOperation] = "AddOperation";
|
|
32
|
-
})(MaterialCombine || (MaterialCombine = {}));
|
|
33
|
-
var MaterialNormalMapType;
|
|
34
|
-
(function (MaterialNormalMapType) {
|
|
35
|
-
MaterialNormalMapType[MaterialNormalMapType["TangentSpaceNormalMap"] = THREE.TangentSpaceNormalMap] = "TangentSpaceNormalMap";
|
|
36
|
-
MaterialNormalMapType[MaterialNormalMapType["ObjectSpaceNormalMap"] = THREE.ObjectSpaceNormalMap] = "ObjectSpaceNormalMap";
|
|
37
|
-
})(MaterialNormalMapType || (MaterialNormalMapType = {}));
|
|
38
|
-
class MaterialDescriptor extends Descriptor {
|
|
39
|
-
static type = 'Material';
|
|
40
|
-
/**透明度测试 */
|
|
41
|
-
alphaTest;
|
|
42
|
-
/**材质是否透明 */
|
|
43
|
-
transparent;
|
|
44
|
-
/**材质类型 */
|
|
45
|
-
side;
|
|
46
|
-
/**是否渲染材质的颜色 */
|
|
47
|
-
colorWrite;
|
|
48
|
-
/**是否启用深度测试 */
|
|
49
|
-
depthTest;
|
|
50
|
-
/**是否写入深度 */
|
|
51
|
-
depthrWrite;
|
|
52
|
-
/**深度函数*/
|
|
53
|
-
depthFunc;
|
|
54
|
-
/** 混合函数,混合效果见 https://threejs.org/examples/#webgl_materials_blending */
|
|
55
|
-
blending;
|
|
56
|
-
/**是否使用顶点着色 */
|
|
57
|
-
vertexColors;
|
|
58
|
-
constructor(descriptor = {}) {
|
|
59
|
-
super(descriptor);
|
|
60
|
-
this.alphaTest = descriptor.alphaTest ?? 0;
|
|
61
|
-
this.transparent = descriptor.transparent ?? false;
|
|
62
|
-
this.side = descriptor.side ?? MaterialSide.FrontSide;
|
|
63
|
-
this.colorWrite = descriptor.colorWrite ?? true;
|
|
64
|
-
this.depthTest = descriptor.depthTest ?? true;
|
|
65
|
-
this.depthrWrite = descriptor.depthrWrite ?? true;
|
|
66
|
-
this.depthFunc = descriptor.depthFunc ?? MaterialDepthFunc.LessEqualDepth;
|
|
67
|
-
this.blending = descriptor.blending ?? MaterialDlending.NormalBlending;
|
|
68
|
-
this.vertexColors = descriptor.vertexColors ?? false;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
Descriptor.register(MaterialDescriptor);
|
|
72
|
-
export { MaterialSide, MaterialDepthFunc, MaterialDlending, MaterialCombine, MaterialNormalMapType, MaterialDescriptor, };
|
|
73
|
-
//# sourceMappingURL=MaterialDescriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MaterialDescriptor.js","sourceRoot":"","sources":["../../../src/descriptor/material/MaterialDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAyB,MAAM,aAAa,CAAA;AAE/D,IAAK,YAIJ;AAJD,WAAK,YAAY;IACb,yCAAY,KAAK,CAAC,SAAS,eAAA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BAAqB,EACrB,kBAAkB,GACrB,CAAA"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DefaultStyleColor, DeserializationObject } from "@vyr/engine";
|
|
2
|
-
import { MaterialCombine, MaterialDescriptor } from "./MaterialDescriptor";
|
|
3
|
-
declare class MeshBasicMaterialDescriptor extends MaterialDescriptor {
|
|
4
|
-
static type: string;
|
|
5
|
-
/**漫反射颜色 */
|
|
6
|
-
color: DefaultStyleColor;
|
|
7
|
-
/**漫反射贴图 */
|
|
8
|
-
map: string;
|
|
9
|
-
/**透明度贴图 */
|
|
10
|
-
alphaMap: string;
|
|
11
|
-
/**表面颜色与环境贴图如何结合
|
|
12
|
-
* - 1 它将环境贴图和物体表面颜色进行相乘
|
|
13
|
-
* - 2 使用反射率来混和两种颜色
|
|
14
|
-
* - 3 用于对两种颜色进行相加
|
|
15
|
-
*/
|
|
16
|
-
combine: MaterialCombine;
|
|
17
|
-
/**环境贴图对表面的影响程度 */
|
|
18
|
-
reflectivity: number;
|
|
19
|
-
/**空气折射率 */
|
|
20
|
-
refractionRatio: number;
|
|
21
|
-
/**烘焙光的强度 */
|
|
22
|
-
lightMapIntensity: number;
|
|
23
|
-
/**环境贴图 */
|
|
24
|
-
envMap: string;
|
|
25
|
-
/**光照贴图 */
|
|
26
|
-
lightMap: string;
|
|
27
|
-
/**高光贴图 */
|
|
28
|
-
specularMap: string;
|
|
29
|
-
/**材质是否受雾影响。默认为true。 */
|
|
30
|
-
fog: boolean;
|
|
31
|
-
/**将几何体渲染为线框。默认值为false */
|
|
32
|
-
wireframe: boolean;
|
|
33
|
-
constructor(descriptor?: Partial<DeserializationObject<MeshBasicMaterialDescriptor>>);
|
|
34
|
-
}
|
|
35
|
-
export { MeshBasicMaterialDescriptor };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { DefaultStyleColor } from "@vyr/engine";
|
|
2
|
-
import { MaterialCombine, MaterialDescriptor } from "./MaterialDescriptor";
|
|
3
|
-
class MeshBasicMaterialDescriptor extends MaterialDescriptor {
|
|
4
|
-
static type = 'MeshBasicMaterial';
|
|
5
|
-
/**漫反射颜色 */
|
|
6
|
-
color;
|
|
7
|
-
/**漫反射贴图 */
|
|
8
|
-
map;
|
|
9
|
-
/**透明度贴图 */
|
|
10
|
-
alphaMap;
|
|
11
|
-
/**表面颜色与环境贴图如何结合
|
|
12
|
-
* - 1 它将环境贴图和物体表面颜色进行相乘
|
|
13
|
-
* - 2 使用反射率来混和两种颜色
|
|
14
|
-
* - 3 用于对两种颜色进行相加
|
|
15
|
-
*/
|
|
16
|
-
combine;
|
|
17
|
-
/**环境贴图对表面的影响程度 */
|
|
18
|
-
reflectivity;
|
|
19
|
-
/**空气折射率 */
|
|
20
|
-
refractionRatio;
|
|
21
|
-
/**烘焙光的强度 */
|
|
22
|
-
lightMapIntensity;
|
|
23
|
-
/**环境贴图 */
|
|
24
|
-
envMap;
|
|
25
|
-
/**光照贴图 */
|
|
26
|
-
lightMap;
|
|
27
|
-
/**高光贴图 */
|
|
28
|
-
specularMap;
|
|
29
|
-
/**材质是否受雾影响。默认为true。 */
|
|
30
|
-
fog;
|
|
31
|
-
/**将几何体渲染为线框。默认值为false */
|
|
32
|
-
wireframe;
|
|
33
|
-
constructor(descriptor = {}) {
|
|
34
|
-
super(descriptor);
|
|
35
|
-
this.color = descriptor.color ? new DefaultStyleColor(descriptor.color) : new DefaultStyleColor({ value: '#ffffff' });
|
|
36
|
-
this.map = descriptor.map ?? '';
|
|
37
|
-
this.alphaMap = descriptor.alphaMap ?? '';
|
|
38
|
-
this.combine = descriptor.combine ?? MaterialCombine.MultiplyOperation;
|
|
39
|
-
this.reflectivity = descriptor.reflectivity ?? 1;
|
|
40
|
-
this.refractionRatio = descriptor.refractionRatio ?? 0.98;
|
|
41
|
-
this.lightMapIntensity = descriptor.lightMapIntensity ?? 1;
|
|
42
|
-
this.envMap = descriptor.envMap ?? '';
|
|
43
|
-
this.lightMap = descriptor.lightMap ?? '';
|
|
44
|
-
this.specularMap = descriptor.specularMap ?? '';
|
|
45
|
-
this.fog = descriptor.fog ?? true;
|
|
46
|
-
this.wireframe = descriptor.wireframe ?? false;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
MaterialDescriptor.register(MeshBasicMaterialDescriptor);
|
|
50
|
-
export { MeshBasicMaterialDescriptor };
|
|
51
|
-
//# sourceMappingURL=MeshBasicMaterialDescriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MeshBasicMaterialDescriptor.js","sourceRoot":"","sources":["../../../src/descriptor/material/MeshBasicMaterialDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAyB,MAAM,aAAa,CAAA;AACtE,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE1E,MAAM,2BAA4B,SAAQ,kBAAkB;IACxD,MAAM,CAAC,IAAI,GAAG,mBAAmB,CAAA;IACjC,WAAW;IACX,KAAK,CAAmB;IACxB,WAAW;IACX,GAAG,CAAQ;IACX,WAAW;IACX,QAAQ,CAAQ;IAChB;;;;OAIG;IACH,OAAO,CAAiB;IACxB,kBAAkB;IAClB,YAAY,CAAQ;IACpB,WAAW;IACX,eAAe,CAAQ;IACvB,YAAY;IACZ,iBAAiB,CAAQ;IACzB,UAAU;IACV,MAAM,CAAQ;IACd,UAAU;IACV,QAAQ,CAAQ;IAChB,UAAU;IACV,WAAW,CAAQ;IACnB,uBAAuB;IACvB,GAAG,CAAS;IACZ,yBAAyB;IACzB,SAAS,CAAS;IAElB,YAAY,aAA0E,EAAE;QACpF,KAAK,CAAC,UAAU,CAAC,CAAA;QACjB,IAAI,CAAC,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,iBAAiB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;QACrH,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,IAAI,EAAE,CAAA;QAC/B,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,EAAE,CAAA;QACzC,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,IAAI,eAAe,CAAC,iBAAiB,CAAA;QACtE,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,CAAC,CAAA;QAChD,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,eAAe,IAAI,IAAI,CAAA;QACzD,IAAI,CAAC,iBAAiB,GAAG,UAAU,CAAC,iBAAiB,IAAI,CAAC,CAAA;QAC1D,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,EAAE,CAAA;QACrC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,EAAE,CAAA;QACzC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,IAAI,EAAE,CAAA;QAC/C,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,IAAI,IAAI,CAAA;QACjC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,IAAI,KAAK,CAAA;IAClD,CAAC;;AAEL,kBAAkB,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAA;AAExD,OAAO,EAAE,2BAA2B,EAAE,CAAA"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { DefaultStyleColor, DeserializationObject, Euler, Vector2 } from "@vyr/engine";
|
|
2
|
-
import { MaterialCombine, MaterialDescriptor, MaterialNormalMapType } from "./MaterialDescriptor";
|
|
3
|
-
declare class MeshPhongMaterialDescriptor extends MaterialDescriptor {
|
|
4
|
-
static type: string;
|
|
5
|
-
/**材质的颜色(Color),默认值为白色 (0xffffff)。 */
|
|
6
|
-
color: DefaultStyleColor;
|
|
7
|
-
/**颜色贴图。可以选择包括一个alpha通道,通常与.transparent 或.alphaTest。默认为null。 纹理贴图颜色由漫反射颜色.color调节。 */
|
|
8
|
-
map: string;
|
|
9
|
-
/**alpha贴图是一张灰度纹理,用于控制整个表面的不透明度。(黑色:完全透明;白色:完全不透明)。 默认值为null。 */
|
|
10
|
-
alphaMap: string;
|
|
11
|
-
/**如何将表面颜色的结果与环境贴图(如果有)结合起来。 */
|
|
12
|
-
combine: MaterialCombine;
|
|
13
|
-
/**环境贴图对表面的影响程度。默认值为1,有效范围介于0(无反射)和1(完全反射)之间。 */
|
|
14
|
-
reflectivity: number;
|
|
15
|
-
/**空气的折射率(IOR)(约为1)除以材质的折射率。 */
|
|
16
|
-
refractionRatio: number;
|
|
17
|
-
/**环境贴图。默认值为null。 */
|
|
18
|
-
envMap: string;
|
|
19
|
-
/**光照贴图。默认值为null。lightMap需要第二组UV。 */
|
|
20
|
-
lightMap: string;
|
|
21
|
-
/**烘焙光的强度。默认值为1。 */
|
|
22
|
-
lightMapIntensity: number;
|
|
23
|
-
/**镜面反射贴图值会影响镜面高光以及环境贴图对表面的影响程度。 */
|
|
24
|
-
specularMap: string;
|
|
25
|
-
/**环境贴图的旋转(以弧度为单位)。默认值为 (0,0,0)。 */
|
|
26
|
-
envMapRotation: Euler;
|
|
27
|
-
/**该纹理的红色通道用作环境遮挡贴图。默认值为null。aoMap需要第二组UV。 */
|
|
28
|
-
aoMap: string;
|
|
29
|
-
/**环境遮挡效果的强度。默认值为1。零是不遮挡效果。 */
|
|
30
|
-
aoMapIntensity: number;
|
|
31
|
-
/**用于创建凹凸贴图的纹理。黑色和白色值映射到与光照相关的感知深度。凹凸实际上不会影响对象的几何形状,只影响光照。如果定义了法线贴图,则将忽略该贴图。 */
|
|
32
|
-
bumpMap: string;
|
|
33
|
-
/**凹凸贴图会对材质产生多大影响。典型范围是0-1。默认值为1。 */
|
|
34
|
-
bumpScale: number;
|
|
35
|
-
/**位移贴图会影响网格顶点的位置,与仅影响材质的光照和阴影的其他贴图不同,移位的顶点可以投射阴影,阻挡其他对象, 以及充当真实的几何体。位移纹理是指:网格的所有顶点被映射为图像中每个像素的值(白色是最高的),并且被重定位。 */
|
|
36
|
-
displacementMap: string;
|
|
37
|
-
/**位移贴图对网格的影响程度(黑色是无位移,白色是最大位移)。如果没有设置位移贴图,则不会应用此值。默认值为1。 */
|
|
38
|
-
displacementScale: number;
|
|
39
|
-
/**位移贴图在网格顶点上的偏移量。如果没有设置位移贴图,则不会应用此值。默认值为0。 */
|
|
40
|
-
displacementBias: number;
|
|
41
|
-
/**材质的放射(光)颜色,基本上是不受其他光照影响的固有颜色。默认为黑色。 */
|
|
42
|
-
emissive: string;
|
|
43
|
-
/**设置放射(发光)贴图。默认值为null。放射贴图颜色由放射颜色和强度所调节。 如果你有一个放射贴图,请务必将放射颜色设置为黑色以外的其他颜色。 */
|
|
44
|
-
emissiveMap: string;
|
|
45
|
-
/**放射光强度。调节发光颜色。默认为1。 */
|
|
46
|
-
emissiveIntensity: number;
|
|
47
|
-
/**用于创建法线贴图的纹理。RGB 值会影响每个像素片段的曲面法线,并更改颜色照亮的方式。法线贴图不会改变曲面的实际形状,只会改变光照。 如果材质的法线贴图使用左手惯例编写,则应将 normalScale 的 y 分量取反以补偿不同的手性。 */
|
|
48
|
-
normalMap: string;
|
|
49
|
-
/**法线贴图的类型。*/
|
|
50
|
-
normalMapType: MaterialNormalMapType;
|
|
51
|
-
/**法线贴图对材质的影响程度。典型范围是0-1。 */
|
|
52
|
-
normalScale: Vector2;
|
|
53
|
-
/**specular高亮的程度,越高的值越闪亮。默认值为 30 */
|
|
54
|
-
shininess: number;
|
|
55
|
-
/**材质的高光颜色。默认值为0x111111(深灰色)的颜色Color */
|
|
56
|
-
specular: string;
|
|
57
|
-
/**定义材质是否使用平面着色进行渲染。默认值为false。 */
|
|
58
|
-
flatShading: boolean;
|
|
59
|
-
/**材质是否受雾影响。默认为true。 */
|
|
60
|
-
fog: boolean;
|
|
61
|
-
/**将几何体渲染为线框。默认值为false */
|
|
62
|
-
wireframe: boolean;
|
|
63
|
-
constructor(descriptor?: Partial<DeserializationObject<MeshPhongMaterialDescriptor>>);
|
|
64
|
-
}
|
|
65
|
-
export { MeshPhongMaterialDescriptor };
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { DefaultStyleColor, Euler, Vector2 } from "@vyr/engine";
|
|
2
|
-
import { MaterialCombine, MaterialDescriptor, MaterialNormalMapType } from "./MaterialDescriptor";
|
|
3
|
-
class MeshPhongMaterialDescriptor extends MaterialDescriptor {
|
|
4
|
-
static type = 'MeshPhongMaterial';
|
|
5
|
-
/**材质的颜色(Color),默认值为白色 (0xffffff)。 */
|
|
6
|
-
color;
|
|
7
|
-
/**颜色贴图。可以选择包括一个alpha通道,通常与.transparent 或.alphaTest。默认为null。 纹理贴图颜色由漫反射颜色.color调节。 */
|
|
8
|
-
map;
|
|
9
|
-
/**alpha贴图是一张灰度纹理,用于控制整个表面的不透明度。(黑色:完全透明;白色:完全不透明)。 默认值为null。 */
|
|
10
|
-
alphaMap;
|
|
11
|
-
/**如何将表面颜色的结果与环境贴图(如果有)结合起来。 */
|
|
12
|
-
combine;
|
|
13
|
-
/**环境贴图对表面的影响程度。默认值为1,有效范围介于0(无反射)和1(完全反射)之间。 */
|
|
14
|
-
reflectivity;
|
|
15
|
-
/**空气的折射率(IOR)(约为1)除以材质的折射率。 */
|
|
16
|
-
refractionRatio;
|
|
17
|
-
/**环境贴图。默认值为null。 */
|
|
18
|
-
envMap;
|
|
19
|
-
/**光照贴图。默认值为null。lightMap需要第二组UV。 */
|
|
20
|
-
lightMap;
|
|
21
|
-
/**烘焙光的强度。默认值为1。 */
|
|
22
|
-
lightMapIntensity;
|
|
23
|
-
/**镜面反射贴图值会影响镜面高光以及环境贴图对表面的影响程度。 */
|
|
24
|
-
specularMap;
|
|
25
|
-
/**环境贴图的旋转(以弧度为单位)。默认值为 (0,0,0)。 */
|
|
26
|
-
envMapRotation;
|
|
27
|
-
/**该纹理的红色通道用作环境遮挡贴图。默认值为null。aoMap需要第二组UV。 */
|
|
28
|
-
aoMap;
|
|
29
|
-
/**环境遮挡效果的强度。默认值为1。零是不遮挡效果。 */
|
|
30
|
-
aoMapIntensity;
|
|
31
|
-
/**用于创建凹凸贴图的纹理。黑色和白色值映射到与光照相关的感知深度。凹凸实际上不会影响对象的几何形状,只影响光照。如果定义了法线贴图,则将忽略该贴图。 */
|
|
32
|
-
bumpMap;
|
|
33
|
-
/**凹凸贴图会对材质产生多大影响。典型范围是0-1。默认值为1。 */
|
|
34
|
-
bumpScale;
|
|
35
|
-
/**位移贴图会影响网格顶点的位置,与仅影响材质的光照和阴影的其他贴图不同,移位的顶点可以投射阴影,阻挡其他对象, 以及充当真实的几何体。位移纹理是指:网格的所有顶点被映射为图像中每个像素的值(白色是最高的),并且被重定位。 */
|
|
36
|
-
displacementMap;
|
|
37
|
-
/**位移贴图对网格的影响程度(黑色是无位移,白色是最大位移)。如果没有设置位移贴图,则不会应用此值。默认值为1。 */
|
|
38
|
-
displacementScale;
|
|
39
|
-
/**位移贴图在网格顶点上的偏移量。如果没有设置位移贴图,则不会应用此值。默认值为0。 */
|
|
40
|
-
displacementBias;
|
|
41
|
-
/**材质的放射(光)颜色,基本上是不受其他光照影响的固有颜色。默认为黑色。 */
|
|
42
|
-
emissive;
|
|
43
|
-
/**设置放射(发光)贴图。默认值为null。放射贴图颜色由放射颜色和强度所调节。 如果你有一个放射贴图,请务必将放射颜色设置为黑色以外的其他颜色。 */
|
|
44
|
-
emissiveMap;
|
|
45
|
-
/**放射光强度。调节发光颜色。默认为1。 */
|
|
46
|
-
emissiveIntensity;
|
|
47
|
-
/**用于创建法线贴图的纹理。RGB 值会影响每个像素片段的曲面法线,并更改颜色照亮的方式。法线贴图不会改变曲面的实际形状,只会改变光照。 如果材质的法线贴图使用左手惯例编写,则应将 normalScale 的 y 分量取反以补偿不同的手性。 */
|
|
48
|
-
normalMap;
|
|
49
|
-
/**法线贴图的类型。*/
|
|
50
|
-
normalMapType;
|
|
51
|
-
/**法线贴图对材质的影响程度。典型范围是0-1。 */
|
|
52
|
-
normalScale;
|
|
53
|
-
/**specular高亮的程度,越高的值越闪亮。默认值为 30 */
|
|
54
|
-
shininess;
|
|
55
|
-
/**材质的高光颜色。默认值为0x111111(深灰色)的颜色Color */
|
|
56
|
-
specular;
|
|
57
|
-
/**定义材质是否使用平面着色进行渲染。默认值为false。 */
|
|
58
|
-
flatShading;
|
|
59
|
-
/**材质是否受雾影响。默认为true。 */
|
|
60
|
-
fog;
|
|
61
|
-
/**将几何体渲染为线框。默认值为false */
|
|
62
|
-
wireframe;
|
|
63
|
-
constructor(descriptor = {}) {
|
|
64
|
-
super(descriptor);
|
|
65
|
-
this.alphaMap = descriptor.alphaMap ?? '';
|
|
66
|
-
this.aoMap = descriptor.aoMap ?? '';
|
|
67
|
-
this.aoMapIntensity = descriptor.aoMapIntensity ?? 1;
|
|
68
|
-
this.bumpMap = descriptor.bumpMap ?? '';
|
|
69
|
-
this.bumpScale = descriptor.bumpScale ?? 1;
|
|
70
|
-
this.color = descriptor.color ? new DefaultStyleColor(descriptor.color) : new DefaultStyleColor({ value: '#ffffff' });
|
|
71
|
-
this.combine = descriptor.combine ?? MaterialCombine.MultiplyOperation;
|
|
72
|
-
this.displacementMap = descriptor.displacementMap ?? '';
|
|
73
|
-
this.displacementScale = descriptor.displacementScale ?? 1;
|
|
74
|
-
this.displacementBias = descriptor.displacementBias ?? 0;
|
|
75
|
-
this.emissive = descriptor.emissive ?? '#000000';
|
|
76
|
-
this.emissiveMap = descriptor.emissiveMap ?? '';
|
|
77
|
-
this.emissiveIntensity = descriptor.emissiveIntensity ?? 1;
|
|
78
|
-
this.envMap = descriptor.envMap ?? '';
|
|
79
|
-
this.envMapRotation = Euler.create(descriptor.envMapRotation);
|
|
80
|
-
this.flatShading = descriptor.flatShading ?? false;
|
|
81
|
-
this.lightMap = descriptor.lightMap ?? '';
|
|
82
|
-
this.lightMapIntensity = descriptor.lightMapIntensity ?? 1;
|
|
83
|
-
this.map = descriptor.map ?? '';
|
|
84
|
-
this.normalMap = descriptor.normalMap ?? '';
|
|
85
|
-
this.normalMapType = descriptor.normalMapType ?? MaterialNormalMapType.TangentSpaceNormalMap;
|
|
86
|
-
this.normalScale = descriptor.normalScale ? Vector2.create(descriptor.normalScale) : Vector2.create(1, 1);
|
|
87
|
-
this.reflectivity = descriptor.reflectivity ?? 1;
|
|
88
|
-
this.refractionRatio = descriptor.refractionRatio ?? 0.98;
|
|
89
|
-
this.shininess = descriptor.shininess ?? 30;
|
|
90
|
-
this.specular = descriptor.specular ?? '#111111';
|
|
91
|
-
this.specularMap = descriptor.specularMap ?? '';
|
|
92
|
-
this.fog = descriptor.fog ?? true;
|
|
93
|
-
this.wireframe = descriptor.wireframe ?? false;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
MaterialDescriptor.register(MeshPhongMaterialDescriptor);
|
|
97
|
-
export { MeshPhongMaterialDescriptor };
|
|
98
|
-
//# sourceMappingURL=MeshPhongMaterialDescriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MeshPhongMaterialDescriptor.js","sourceRoot":"","sources":["../../../src/descriptor/material/MeshPhongMaterialDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAyB,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACtF,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAEjG,MAAM,2BAA4B,SAAQ,kBAAkB;IACxD,MAAM,CAAC,IAAI,GAAG,mBAAmB,CAAA;IACjC,qCAAqC;IACrC,KAAK,CAAmB;IACxB,qFAAqF;IACrF,GAAG,CAAQ;IACX,gEAAgE;IAChE,QAAQ,CAAQ;IAChB,+BAA+B;IAC/B,OAAO,CAAiB;IACxB,gDAAgD;IAChD,YAAY,CAAQ;IACpB,+BAA+B;IAC/B,eAAe,CAAQ;IACvB,oBAAoB;IACpB,MAAM,CAAQ;IACd,oCAAoC;IACpC,QAAQ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CAAC,MAAM,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QACzG,IAAI,CAAC,YAAY,GAAG,UAAU,CAAC,YAAY,IAAI,CAAC,CAAA;QAChD,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,eAAe,IAAI,IAAI,CAAA;QACzD,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,IAAI,EAAE,CAAA;QAC3C,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,IAAI,SAAS,CAAA;QAChD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,IAAI,EAAE,CAAA;QAC/C,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,IAAI,IAAI,CAAA;QACjC,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC,SAAS,IAAI,KAAK,CAAA;IAClD,CAAC;;AAEL,kBAAkB,CAAC,QAAQ,CAAC,2BAA2B,CAAC,CAAA;AAExD,OAAO,EAAE,2BAA2B,EAAE,CAAA"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { DefaultStyleColor, DeserializationObject, Euler, Vector2 } from "@vyr/engine";
|
|
2
|
-
import { MaterialDescriptor } from "./MaterialDescriptor";
|
|
3
|
-
declare class MeshStandardMaterialDescriptor extends MaterialDescriptor {
|
|
4
|
-
static type: string;
|
|
5
|
-
/**漫反射颜色 */
|
|
6
|
-
color: DefaultStyleColor;
|
|
7
|
-
/**漫反射贴图 */
|
|
8
|
-
map: string;
|
|
9
|
-
/**透明度贴图 */
|
|
10
|
-
alphaMap: string;
|
|
11
|
-
/**环境贴图 */
|
|
12
|
-
envMap: string;
|
|
13
|
-
/**环境贴图强度 */
|
|
14
|
-
envMapIntensity: number;
|
|
15
|
-
/**光照贴图 */
|
|
16
|
-
lightMap: string;
|
|
17
|
-
/**烘焙光的强度 */
|
|
18
|
-
lightMapIntensity: number;
|
|
19
|
-
/**环境贴图的旋转(以弧度为单位)。默认值为 (0,0,0)。 */
|
|
20
|
-
envMapRotation: Euler;
|
|
21
|
-
/**该纹理的红色通道用作环境遮挡贴图。默认值为null。aoMap需要第二组UV。 */
|
|
22
|
-
aoMap: string;
|
|
23
|
-
/**环境遮挡效果的强度。默认值为1。零是不遮挡效果。 */
|
|
24
|
-
aoMapIntensity: number;
|
|
25
|
-
/**凹凸贴图 */
|
|
26
|
-
bumpMap: string;
|
|
27
|
-
/**凹凸贴图会对材质产生多大影响 */
|
|
28
|
-
bumpScale: number;
|
|
29
|
-
/**位移贴图会影响网格顶点的位置,与仅影响材质的光照和阴影的其他贴图不同,移位的顶点可以投射阴影,阻挡其他对象, 以及充当真实的几何体。位移纹理是指:网格的所有顶点被映射为图像中每个像素的值(白色是最高的),并且被重定位。 */
|
|
30
|
-
displacementMap: string;
|
|
31
|
-
/**位移贴图对网格的影响程度(黑色是无位移,白色是最大位移)。如果没有设置位移贴图,则不会应用此值。默认值为1。 */
|
|
32
|
-
displacementScale: number;
|
|
33
|
-
/**位移贴图在网格顶点上的偏移量。如果没有设置位移贴图,则不会应用此值。默认值为0。 */
|
|
34
|
-
displacementBias: number;
|
|
35
|
-
/**材质的放射(光)颜色 */
|
|
36
|
-
emissive: string;
|
|
37
|
-
/**放射(发光)贴图 */
|
|
38
|
-
emissiveMap: string;
|
|
39
|
-
/**放射光强度 */
|
|
40
|
-
emissiveIntensity: number;
|
|
41
|
-
/**材质的金属度贴图 */
|
|
42
|
-
metalnessMap: string;
|
|
43
|
-
/**材质与金属的相似度.木材或石材,使用0.0,金属使用1.0 */
|
|
44
|
-
metalness: number;
|
|
45
|
-
/**材质的法线贴图 */
|
|
46
|
-
normalMap: string;
|
|
47
|
-
/**法线贴图的类型。*/
|
|
48
|
-
normalMapType: number;
|
|
49
|
-
/**法线贴图对材质的影响程度 */
|
|
50
|
-
normalScale: Vector2;
|
|
51
|
-
/**材质的粗糙程度 */
|
|
52
|
-
roughness: number;
|
|
53
|
-
/**材质的粗糙度贴图 */
|
|
54
|
-
roughnessMap: string;
|
|
55
|
-
/**定义材质是否使用平面着色进行渲染。默认值为false。 */
|
|
56
|
-
flatShading: boolean;
|
|
57
|
-
/**材质是否受雾影响。默认为true。 */
|
|
58
|
-
fog: boolean;
|
|
59
|
-
/**将几何体渲染为线框。默认值为false */
|
|
60
|
-
wireframe: boolean;
|
|
61
|
-
constructor(descriptor?: Partial<DeserializationObject<MeshStandardMaterialDescriptor>>);
|
|
62
|
-
}
|
|
63
|
-
export { MeshStandardMaterialDescriptor };
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { DefaultStyleColor, Euler, Vector2 } from "@vyr/engine";
|
|
2
|
-
import { MaterialDescriptor, MaterialNormalMapType } from "./MaterialDescriptor";
|
|
3
|
-
class MeshStandardMaterialDescriptor extends MaterialDescriptor {
|
|
4
|
-
static type = 'MeshStandardMaterial';
|
|
5
|
-
/**漫反射颜色 */
|
|
6
|
-
color;
|
|
7
|
-
/**漫反射贴图 */
|
|
8
|
-
map;
|
|
9
|
-
/**透明度贴图 */
|
|
10
|
-
alphaMap;
|
|
11
|
-
/**环境贴图 */
|
|
12
|
-
envMap;
|
|
13
|
-
/**环境贴图强度 */
|
|
14
|
-
envMapIntensity;
|
|
15
|
-
/**光照贴图 */
|
|
16
|
-
lightMap;
|
|
17
|
-
/**烘焙光的强度 */
|
|
18
|
-
lightMapIntensity;
|
|
19
|
-
/**环境贴图的旋转(以弧度为单位)。默认值为 (0,0,0)。 */
|
|
20
|
-
envMapRotation;
|
|
21
|
-
/**该纹理的红色通道用作环境遮挡贴图。默认值为null。aoMap需要第二组UV。 */
|
|
22
|
-
aoMap;
|
|
23
|
-
/**环境遮挡效果的强度。默认值为1。零是不遮挡效果。 */
|
|
24
|
-
aoMapIntensity;
|
|
25
|
-
/**凹凸贴图 */
|
|
26
|
-
bumpMap;
|
|
27
|
-
/**凹凸贴图会对材质产生多大影响 */
|
|
28
|
-
bumpScale;
|
|
29
|
-
/**位移贴图会影响网格顶点的位置,与仅影响材质的光照和阴影的其他贴图不同,移位的顶点可以投射阴影,阻挡其他对象, 以及充当真实的几何体。位移纹理是指:网格的所有顶点被映射为图像中每个像素的值(白色是最高的),并且被重定位。 */
|
|
30
|
-
displacementMap;
|
|
31
|
-
/**位移贴图对网格的影响程度(黑色是无位移,白色是最大位移)。如果没有设置位移贴图,则不会应用此值。默认值为1。 */
|
|
32
|
-
displacementScale;
|
|
33
|
-
/**位移贴图在网格顶点上的偏移量。如果没有设置位移贴图,则不会应用此值。默认值为0。 */
|
|
34
|
-
displacementBias;
|
|
35
|
-
/**材质的放射(光)颜色 */
|
|
36
|
-
emissive;
|
|
37
|
-
/**放射(发光)贴图 */
|
|
38
|
-
emissiveMap;
|
|
39
|
-
/**放射光强度 */
|
|
40
|
-
emissiveIntensity;
|
|
41
|
-
/**材质的金属度贴图 */
|
|
42
|
-
metalnessMap;
|
|
43
|
-
/**材质与金属的相似度.木材或石材,使用0.0,金属使用1.0 */
|
|
44
|
-
metalness;
|
|
45
|
-
/**材质的法线贴图 */
|
|
46
|
-
normalMap;
|
|
47
|
-
/**法线贴图的类型。*/
|
|
48
|
-
normalMapType;
|
|
49
|
-
/**法线贴图对材质的影响程度 */
|
|
50
|
-
normalScale;
|
|
51
|
-
/**材质的粗糙程度 */
|
|
52
|
-
roughness;
|
|
53
|
-
/**材质的粗糙度贴图 */
|
|
54
|
-
roughnessMap;
|
|
55
|
-
/**定义材质是否使用平面着色进行渲染。默认值为false。 */
|
|
56
|
-
flatShading;
|
|
57
|
-
/**材质是否受雾影响。默认为true。 */
|
|
58
|
-
fog;
|
|
59
|
-
/**将几何体渲染为线框。默认值为false */
|
|
60
|
-
wireframe;
|
|
61
|
-
constructor(descriptor = {}) {
|
|
62
|
-
super(descriptor);
|
|
63
|
-
this.color = descriptor.color ? new DefaultStyleColor(descriptor.color) : new DefaultStyleColor({ value: '#ffffff' });
|
|
64
|
-
this.map = descriptor.map ?? '';
|
|
65
|
-
this.alphaMap = descriptor.alphaMap ?? '';
|
|
66
|
-
this.envMapIntensity = descriptor.envMapIntensity ?? 1;
|
|
67
|
-
this.lightMapIntensity = descriptor.lightMapIntensity ?? 1;
|
|
68
|
-
this.envMap = descriptor.envMap ?? '';
|
|
69
|
-
this.lightMap = descriptor.lightMap ?? '';
|
|
70
|
-
this.envMapRotation = Euler.create(descriptor.envMapRotation);
|
|
71
|
-
this.aoMap = descriptor.aoMap ?? '';
|
|
72
|
-
this.aoMapIntensity = descriptor.aoMapIntensity ?? 1;
|
|
73
|
-
this.bumpMap = descriptor.bumpMap ?? '';
|
|
74
|
-
this.bumpScale = descriptor.bumpScale ?? 1;
|
|
75
|
-
this.displacementMap = descriptor.displacementMap ?? '';
|
|
76
|
-
this.displacementScale = descriptor.displacementScale ?? 1;
|
|
77
|
-
this.displacementBias = descriptor.displacementBias ?? 0;
|
|
78
|
-
this.emissive = descriptor.emissive ?? '#000000';
|
|
79
|
-
this.emissiveMap = descriptor.emissiveMap ?? '';
|
|
80
|
-
this.emissiveIntensity = descriptor.emissiveIntensity ?? 1;
|
|
81
|
-
this.metalness = descriptor.metalness ?? 0;
|
|
82
|
-
this.metalnessMap = descriptor.metalnessMap ?? '';
|
|
83
|
-
this.normalMap = descriptor.normalMap ?? '';
|
|
84
|
-
this.normalMapType = descriptor.normalMapType ?? MaterialNormalMapType.TangentSpaceNormalMap;
|
|
85
|
-
this.normalScale = descriptor.normalScale ? Vector2.create(descriptor.normalScale) : Vector2.create(1, 1);
|
|
86
|
-
this.roughness = descriptor.roughness ?? 1;
|
|
87
|
-
this.roughnessMap = descriptor.roughnessMap ?? '';
|
|
88
|
-
this.flatShading = descriptor.flatShading ?? false;
|
|
89
|
-
this.fog = descriptor.fog ?? true;
|
|
90
|
-
this.wireframe = descriptor.wireframe ?? false;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
MaterialDescriptor.register(MeshStandardMaterialDescriptor);
|
|
94
|
-
export { MeshStandardMaterialDescriptor };
|
|
95
|
-
//# sourceMappingURL=MeshStandardMaterialDescriptor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MeshStandardMaterialDescriptor.js","sourceRoot":"","sources":["../../../src/descriptor/material/MeshStandardMaterialDescriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAyB,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACtF,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAA;AAEhF,MAAM,8BAA+B,SAAQ,kBAAkB;IAC3D,MAAM,CAAC,IAAI,GAAG,sBAAsB,CAAA;IACpC,WAAW;IACX,KAAK,CAAmB;IACxB,WAAW;IACX,GAAG,CAAQ;IACX,WAAW;IACX,QAAQ,CAAQ;IAChB,UAAU;IACV,MAAM,CAAQ;IACd,YAAY;IACZ,eAAe,CAAQ;IACvB,UAAU;IACV,QAAQ,CAAQ;IAChB,YAAY;IACZ,iBAAiB,CAAQ;IAEzB,mCAAmC;IACnC,cAAc,CAAO;IACrB,6CAA6C;IAC7C,KAAK,CAAQ;IACb,8BAA8B;IAC9B,cAAc,CAAQ;IACtB,UAAU;IACV,OAAO,CAAQ;IACf,oBAAoB;IACpB,SAAS,CAAQ;IACjB,mHAAmH;IACnH,eAAe,CAAQ;IACvB,4DAA4D;IAC5D,iBAAiB,CAAQ;IACzB,8CAA8C;IAC9C,gBAAgB,CAAQ;IACxB,gBAAgB;IAChB,QAAQ,CAAQ;IAChB,cAAc;IACd,WAAW,CAAQ;IACnB,WAAW;IACX,iBAAiB,CAAQ;IACzB,cAAc;IACd,YAAY,CAAQ;IACpB,mCAAmC;IACnC,SAAS,CAAQ;IACjB,aAAa;IACb,SAAS,CAAQ;IACjB,aAAa;IACb,aAAa,CAAQ;IACrB,kBAAkB;IAClB,WAAW,CAAS;IACpB,aAAa;IACb,SAAS,CAAQ;IACjB,cAAc;IACd,YAAY,CAAQ;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@
|
|
|
1
|
-
import { DefaultStyleColor, DeserializationObject } from "@vyr/engine";
|
|
2
|
-
import { MaterialDescriptor } from "./MaterialDescriptor";
|
|
3
|
-
declare class PointsMaterialDescriptor extends MaterialDescriptor {
|
|
4
|
-
static type: string;
|
|
5
|
-
/**漫反射颜色 */
|
|
6
|
-
color: DefaultStyleColor;
|
|
7
|
-
/**漫反射贴图 */
|
|
8
|
-
map: string;
|
|
9
|
-
/**透明度贴图 */
|
|
10
|
-
alphaMap: string;
|
|
11
|
-
/**点的的大小 */
|
|
12
|
-
size: number;
|
|
13
|
-
/**点的大小是否会被相机深度衰减 */
|
|
14
|
-
sizeAttenuation: boolean;
|
|
15
|
-
/**材质是否受雾影响。默认为true。 */
|
|
16
|
-
fog: boolean;
|
|
17
|
-
constructor(descriptor?: Partial<DeserializationObject<PointsMaterialDescriptor>>);
|
|
18
|
-
}
|
|
19
|
-
export { PointsMaterialDescriptor };
|