star_mod_renderer
Advanced tools
Comparing version 1.0.69 to 1.0.70
@@ -96,3 +96,3 @@ import * as THREE from 'star_mod_custom_three'; | ||
if (max > distance * 1.6) { | ||
delta.multiplyScalar(distance * 3); | ||
delta.multiplyScalar(distance * 2.4); | ||
} else { | ||
@@ -99,0 +99,0 @@ delta.multiplyScalar(distance * 2.2); |
@@ -436,2 +436,3 @@ import * as THREE from 'star_mod_custom_three'; | ||
if (texture.normalTexture) { | ||
material.normalScale = new THREE.Vector2(1, -1); | ||
material.normalMap = texture.normalTexture; | ||
@@ -438,0 +439,0 @@ material.normalMap.wrapS = THREE.RepeatWrapping; |
@@ -0,0 +0,0 @@ import * as THREE from 'star_mod_custom_three'; |
@@ -23,7 +23,7 @@ import { Vector3 } from 'star_mod_custom_three'; | ||
}, | ||
color: this.vector3ToHex({ | ||
color: this.vector3ToHex(this.transRGBToRender({ | ||
x: item.color.r, | ||
y: item.color.g, | ||
z: item.color.b | ||
}), // 映射字符串 | ||
})), // 映射字符串 | ||
intensity: Number(item.intensity), | ||
@@ -76,7 +76,7 @@ }; | ||
preview.ambientLight = { | ||
color: this.vector3ToHex({ | ||
color: this.vector3ToHex(this.transRGBToRender({ | ||
x: previewData.ambientLight.color.r, | ||
y: previewData.ambientLight.color.g, | ||
z: previewData.ambientLight.color.b | ||
}), | ||
})), | ||
intensity: Number(previewData.ambientLight.intensity), | ||
@@ -83,0 +83,0 @@ }; |
{ | ||
"name": "star_mod_renderer", | ||
"version": "1.0.69", | ||
"version": "1.0.70", | ||
"description": "star mod project render auxiliary", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -514,3 +514,3 @@ /** | ||
this.previewData = previewHelper.transPreviewDataToRender(previewData); | ||
this.setPreviewData(this.previewData); | ||
const getCurrEnvMap = () => { | ||
@@ -748,2 +748,3 @@ const envMap = this.previewData.envMap || 'sky'; | ||
this.previewData = previewHelper.transPreviewDataToRender(previewData); | ||
this.setPreviewData(this.previewData); | ||
@@ -1013,2 +1014,3 @@ const getCurrEnvMap = () => { | ||
this.previewData = previewHelper.transPreviewDataToRender(previewData); | ||
this.setPreviewData(this.previewData); | ||
@@ -1070,2 +1072,3 @@ const getCurrEnvMap = () => { | ||
}); | ||
this.previewData.envMap = environment.name; | ||
} | ||
@@ -1125,2 +1128,3 @@ } | ||
directionalLight: this.directionalLights, | ||
envMap: this.previewData.envMap, | ||
}; | ||
@@ -1156,3 +1160,3 @@ return previewHelper.transPreviewDataToStore(previewData); | ||
color: new THREE.Color(0xffffff), | ||
intensity: this.ambientLight.intensity * 2.4 <= 1 ? this.ambientLight.intensity * 2.4 : 1, | ||
intensity: this.ambientLight.intensity * 2.4 <= 0.5 ? this.ambientLight.intensity * 2.4 : 0.5, | ||
}); | ||
@@ -1159,0 +1163,0 @@ this.focusModel(this.mainModels[0].getModel()); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
398924
10812