star_mod_renderer
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -10,2 +10,4 @@ import * as THREE from 'three'; | ||
model = null; | ||
emissiveMap = null; | ||
emissiveIntensityMap = null; // 二者不能共存,有 emissiveMap 时,emissiveIntensityMap 不生效 | ||
@@ -141,4 +143,5 @@ constructor(model) { | ||
material.metalnessMap = texture.ormeTexture; // b | ||
// TODO: 扩充 material 字段 emissiveIntensityMap 字段,增加渲染公式与对应逻辑获取 | ||
material.emissiveMap = texture.ormeTexture; // a | ||
if (!this.emissiveMap) { | ||
material.emissiveIntensityMap = texture.ormeTexture; // a | ||
} | ||
} | ||
@@ -148,4 +151,6 @@ | ||
if (texture.emissiveTexture) { | ||
material.emissiveIntensityMap = null; | ||
this.emissiveMap = texture.emissiveTexture; | ||
material.emissiveMap = texture.emissiveTexture; | ||
material.emissive = new THREE.Color(0xffffff); | ||
material.emissiveMap = texture.emissiveTexture; | ||
} | ||
@@ -152,0 +157,0 @@ |
{ | ||
"name": "star_mod_renderer", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "star mod project render auxiliary ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
276450
7421