Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

star_mod_renderer

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

star_mod_renderer - npm Package Compare versions

Comparing version 1.0.69 to 1.0.70

2

assets/EditorControls.js

@@ -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());

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc