Three.js 添加obj模型,旋转,加速,减速功能
suerprisePlus
2024-06-04 0b8adfd8269ecbe4a5f720a491a7659335388f1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
  serializedVersion: 6
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_Name: dj_005.jpg
  m_Shader: {fileID: 45, guid: 0000000000000000f000000000000000, type: 0}
  m_ShaderKeywords: _DIRECTIONAL_LIGHT _HOVER_LIGHT _REFLECTIONS _SPECULAR_HIGHLIGHTS
  m_LightmapFlags: 4
  m_EnableInstancingVariants: 0
  m_DoubleSidedGI: 0
  m_CustomRenderQueue: -1
  stringTagMap: {}
  disabledShaderPasses: []
  m_SavedProperties:
    serializedVersion: 3
    m_TexEnvs:
    - _BumpMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _ChannelMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _DetailAlbedoMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _DetailMask:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _DetailNormalMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _EmissionMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _IridescentSpectrumMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _MainTex:
        m_Texture: {fileID: 2800000, guid: 0167a277121597b4291cb6fef12e0704, type: 3}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _MetallicGlossMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _NormalMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _OcclusionMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _ParallaxMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    - _SpecGlossMap:
        m_Texture: {fileID: 0}
        m_Scale: {x: 1, y: 1}
        m_Offset: {x: 0, y: 0}
    m_Floats:
    - _AlbedoAlphaMode: 0
    - _AlbedoAssignedAtRuntime: 0
    - _BlendOp: 0
    - _BlendedClippingWidth: 1
    - _BorderLight: 0
    - _BorderLightOpaque: 0
    - _BorderLightOpaqueAlpha: 1
    - _BorderLightReplacesAlbedo: 0
    - _BorderLightUsesHoverColor: 0
    - _BorderMinValue: 0.1
    - _BorderWidth: 0.1
    - _BumpScale: 1
    - _ClippingBorder: 0
    - _ClippingBorderWidth: 0.025
    - _ColorWriteMask: 15
    - _CullMode: 0
    - _CustomMode: 0
    - _Cutoff: 0.5
    - _DetailNormalMapScale: 1
    - _DirectionalLight: 1
    - _DstBlend: 0
    - _EdgeSmoothingValue: 0.002
    - _EnableChannelMap: 0
    - _EnableEmission: 0
    - _EnableHoverColorOverride: 0
    - _EnableLocalSpaceTriplanarMapping: 0
    - _EnableNormalMap: 0
    - _EnableProximityLightColorOverride: 0
    - _EnableSSAA: 0
    - _EnableTriplanarMapping: 0
    - _EnvironmentColorIntensity: 0.5
    - _EnvironmentColorThreshold: 1.5
    - _EnvironmentColoring: 0
    - _FadeBeginDistance: 0.85
    - _FadeCompleteDistance: 0.5
    - _FadeMinValue: 0
    - _FluentLightIntensity: 1
    - _GlossMapScale: 1
    - _Glossiness: 0
    - _GlossyReflections: 1
    - _HoverLight: 1
    - _IgnoreZScale: 0
    - _IndependentCorners: 0
    - _InnerGlow: 0
    - _InnerGlowPower: 4
    - _Iridescence: 0
    - _IridescenceAngle: -0.78
    - _IridescenceIntensity: 0.5
    - _IridescenceThreshold: 0.05
    - _Metallic: 0
    - _MipmapBias: -2
    - _Mode: 0
    - _NearLightFade: 0
    - _NearPlaneFade: 0
    - _NormalMapScale: 1
    - _OcclusionStrength: 1
    - _Parallax: 0.02
    - _ProximityLight: 0
    - _ProximityLightSubtractive: 0
    - _ProximityLightTwoSided: 0
    - _Reflections: 1
    - _Refraction: 0
    - _RefractiveIndex: 0
    - _RenderQueueOverride: -1
    - _RimLight: 0
    - _RimPower: 0.25
    - _RoundCornerMargin: 0.01
    - _RoundCornerRadius: 0.25
    - _RoundCorners: 0
    - _Smoothness: 0
    - _SmoothnessTextureChannel: 0
    - _SpecularHighlights: 1
    - _SphericalHarmonics: 0
    - _SrcBlend: 1
    - _Stencil: 0
    - _StencilComparison: 0
    - _StencilOperation: 0
    - _StencilReference: 0
    - _TriplanarMappingBlendSharpness: 4
    - _UVSec: 0
    - _VertexColors: 0
    - _VertexExtrusion: 0
    - _VertexExtrusionSmoothNormals: 0
    - _VertexExtrusionValue: 0
    - _ZOffsetFactor: 0
    - _ZOffsetUnits: 0
    - _ZTest: 4
    - _ZWrite: 1
    m_Colors:
    - _ClippingBorderColor: {r: 1, g: 0.19999996, b: 0, a: 1}
    - _Color: {r: 0.5882353, g: 0.5882353, b: 0.5882353, a: 1}
    - _EmissionColor: {r: 0, g: 0, b: 0, a: 0}
    - _EmissiveColor: {r: 0, g: 0, b: 0, a: 0}
    - _EnvironmentColorX: {r: 1, g: 0, b: 0, a: 1}
    - _EnvironmentColorY: {r: 0, g: 1, b: 0, a: 1}
    - _EnvironmentColorZ: {r: 0, g: 0, b: 1, a: 1}
    - _HoverColorOverride: {r: 1, g: 1, b: 1, a: 1}
    - _InnerGlowColor: {r: 1, g: 1, b: 1, a: 0.75}
    - _ProximityLightCenterColorOverride: {r: 1, g: 0, b: 0, a: 0}
    - _ProximityLightMiddleColorOverride: {r: 0, g: 1, b: 0, a: 0.5}
    - _ProximityLightOuterColorOverride: {r: 0, g: 0, b: 1, a: 1}
    - _RimColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
    - _RoundCornersRadius: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
    - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
  m_BuildTextureStacks: []