star_mod_renderer
Advanced tools
Comparing version 1.0.71 to 1.0.72
@@ -0,0 +0,0 @@ import * as THREE from 'star_mod_custom_three'; |
@@ -223,13 +223,2 @@ import * as THREE from 'star_mod_custom_three'; | ||
export const fashionFemaleAnimationModel = { | ||
domesticPath: 'https://mod-img.westar.qq.com/mod/modOfficial/1677122095-mesh.fbx', | ||
abroadPath: 'https://xqhw-1255691311.cos.ap-singapore.myqcloud.com/mod/modOfficial/1677122257-mesh.fbx' | ||
}; | ||
export const fashionMaleAnimationModel = { | ||
domesticPath: 'https://mod-img.westar.qq.com/mod/modOfficial/1677122095-mesh.fbx', | ||
abroadPath: 'https://xqhw-1255691311.cos.ap-singapore.myqcloud.com/mod/modOfficial/1677122257-mesh.fbx' | ||
}; | ||
export const defaultModel = { | ||
@@ -511,11 +500,11 @@ 401: { | ||
domesticPath: 'https://mod-img.westar.qq.com/mod/modOfficial/1688457456_M_face_D.png', | ||
abroadPath: 'https://xqhw-1255691311.cos.ap-singapore.myqcloud.com/mod/modOfficial/1700809127_M_face_01_D.png' | ||
abroadPath: 'https://mod-img.westar.qq.com/mod/modOfficial/1701682297_1688457456_M_face_D.png' | ||
}, | ||
nTGA: { | ||
domesticPath: 'https://mod-img.westar.qq.com/mod/modOfficial/1688457484_M_face_N.png', | ||
abroadPath: 'https://xqhw-1255691311.cos.ap-singapore.myqcloud.com/mod/modOfficial/1700809146_M_face_01_N.png' | ||
abroadPath: 'https://mod-img.westar.qq.com/mod/modOfficial/1701682315_1688457484_M_face_N.png' | ||
}, | ||
srmTGA: { | ||
domesticPath: 'https://mod-img.westar.qq.com/mod/modOfficial/1688457499_M_face_SRMA.png', | ||
abroadPath: 'https://xqhw-1255691311.cos.ap-singapore.myqcloud.com/mod/modOfficial/1700809138_M_face_01_g.png' | ||
abroadPath: 'https://mod-img.westar.qq.com/mod/modOfficial/1701682337_1688457499_M_face_SRMA.png' | ||
}, | ||
@@ -522,0 +511,0 @@ materialParams: { |
@@ -191,10 +191,5 @@ import * as THREE from 'star_mod_custom_three'; | ||
try { | ||
if (process && process.env && process.env.VUE_APP_NAME) { | ||
processEnv = process.env.VUE_APP_NAME; | ||
} else { | ||
processEnv = import.meta.env.VITE_APP_NAME; | ||
} | ||
processEnv = process.env.ENV_AREA; | ||
} catch (e) { | ||
console.error(e); | ||
processEnv = "domestic"; | ||
processEnv = import.meta.env.ENV_AREA; | ||
} | ||
@@ -257,13 +252,9 @@ if (type === FEMALE_BODY_MATERIAL_KEY) { | ||
async createHead(type) { | ||
let processEnv = "domestic"; | ||
try { | ||
if (process && process.env && process.env.VUE_APP_NAME) { | ||
processEnv = process.env.VUE_APP_NAME; | ||
} else { | ||
processEnv = import.meta.env.VITE_APP_NAME; | ||
} | ||
} catch (e) { | ||
console.error(e); | ||
processEnv = "domestic"; | ||
} | ||
// let processEnv = "domestic"; | ||
let processEnv = "abroad"; | ||
// try { | ||
// processEnv = process.env.ENV_AREA; | ||
// } catch (e) { | ||
// processEnv = import.meta.env.ENV_AREA; | ||
// } | ||
if (type === MALE_HEAD_MATERIAL_KEY) { | ||
@@ -314,11 +305,8 @@ // TODO: 移动端与海外采用不同的环境参数或 url | ||
material[1].map.wrapT = THREE.RepeatWrapping; | ||
material[1].map.offset = new THREE.Vector2(0, 1); | ||
material[1].normalMap = files[1]; | ||
material[1].normalMap.wrapS = THREE.RepeatWrapping; | ||
material[1].normalMap.wrapT = THREE.RepeatWrapping; | ||
material[1].normalMap.offset = new THREE.Vector2(0, 1); | ||
material[1].clearcoatRoughnessMap = files[2]; // g | ||
material[1].clearcoatRoughnessMap.wrapS = THREE.RepeatWrapping; | ||
material[1].clearcoatRoughnessMap.wrapT = THREE.RepeatWrapping; | ||
material[1].clearcoatRoughnessMap.offset = new THREE.Vector2(0, 1); | ||
material[1].needsUpdate = true; | ||
@@ -325,0 +313,0 @@ |
@@ -11,3 +11,9 @@ import { Vector3 } from 'star_mod_custom_three'; | ||
async getEnvMapByName(envMapName) { | ||
const data = await getEnvMapByName(envMapName, process.env.VUE_APP_NAME); | ||
let processEnv = "domestic"; | ||
try { | ||
processEnv = process.env.ENV_AREA; | ||
} catch (e) { | ||
processEnv = import.meta.env.ENV_AREA; | ||
} | ||
const data = await getEnvMapByName(envMapName, processEnv); | ||
return data; | ||
@@ -14,0 +20,0 @@ } |
{ | ||
"name": "star_mod_renderer", | ||
"version": "1.0.71", | ||
"version": "1.0.72", | ||
"description": "star mod project render auxiliary", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -178,5 +178,5 @@ /** | ||
if (this.options.platform === "pc") { | ||
processEnv = process.env.VUE_APP_NAME; | ||
processEnv = process.env.ENV_AREA; | ||
} else if (this.options.platform === "mobile") { | ||
processEnv = import.meta.env.VITE_APP_NAME; | ||
processEnv = import.meta.env.ENV_AREA; | ||
} | ||
@@ -522,5 +522,5 @@ } catch (e) { | ||
if (this.options.platform === "pc") { | ||
processEnv = process.env.VUE_APP_NAME; | ||
processEnv = process.env.ENV_AREA; | ||
} else if (this.options.platform === "mobile") { | ||
processEnv = import.meta.env.VITE_APP_NAME; | ||
processEnv = import.meta.env.ENV_AREA; | ||
} | ||
@@ -575,5 +575,5 @@ } catch (e) { | ||
if (this.options.platform === "pc") { | ||
processEnv = process.env.VUE_APP_NAME; | ||
processEnv = process.env.ENV_AREA; | ||
} else if (this.options.platform === "mobile") { | ||
processEnv = import.meta.env.VITE_APP_NAME; | ||
processEnv = import.meta.env.ENV_AREA; | ||
} | ||
@@ -758,5 +758,5 @@ } catch (e) { | ||
if (this.options.platform === "pc") { | ||
processEnv = process.env.VUE_APP_NAME; | ||
processEnv = process.env.ENV_AREA; | ||
} else if (this.options.platform === "mobile") { | ||
processEnv = import.meta.env.VITE_APP_NAME; | ||
processEnv = import.meta.env.ENV_AREA; | ||
} | ||
@@ -798,5 +798,5 @@ } catch (e) { | ||
if (this.options.platform === "pc") { | ||
processEnv = process.env.VUE_APP_NAME; | ||
processEnv = process.env.ENV_AREA; | ||
} else if (this.options.platform === "mobile") { | ||
processEnv = import.meta.env.VITE_APP_NAME; | ||
processEnv = import.meta.env.ENV_AREA; | ||
} | ||
@@ -1025,5 +1025,5 @@ } catch (e) { | ||
if (this.options.platform === "pc") { | ||
processEnv = process.env.VUE_APP_NAME; | ||
processEnv = process.env.ENV_AREA; | ||
} else if (this.options.platform === "mobile") { | ||
processEnv = import.meta.env.VITE_APP_NAME; | ||
processEnv = import.meta.env.ENV_AREA; | ||
} | ||
@@ -1051,5 +1051,5 @@ } catch (e) { | ||
if (this.options.platform === "pc") { | ||
processEnv = process.env.VUE_APP_NAME; | ||
processEnv = process.env.ENV_AREA; | ||
} else if (this.options.platform === "mobile") { | ||
processEnv = import.meta.env.VITE_APP_NAME; | ||
processEnv = import.meta.env.ENV_AREA; | ||
} | ||
@@ -1056,0 +1056,0 @@ } catch (e) { |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
400895
10
10798