From e3c7670781c60aae4b74c25162c0c1a4d1887a58 Mon Sep 17 00:00:00 2001 From: Julian Dehm Date: Wed, 26 Jun 2024 15:08:55 +0200 Subject: [PATCH] sketch:distort: adapt to lightning changes in Three 155 --- changelog/0003.md | 3 +++ src/js/sketch/distort/init.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/0003.md diff --git a/changelog/0003.md b/changelog/0003.md new file mode 100644 index 00000000..8cdd2653 --- /dev/null +++ b/changelog/0003.md @@ -0,0 +1,3 @@ +### Fixed + +- adjust lightning value to new lightning system in Three diff --git a/src/js/sketch/distort/init.js b/src/js/sketch/distort/init.js index bf36c48f..31c3d994 100644 --- a/src/js/sketch/distort/init.js +++ b/src/js/sketch/distort/init.js @@ -32,7 +32,7 @@ export default function (id, options = {}) { var sphere = null var sub_scene = new THREE.Scene() var sub_camera = new ForceCamera(45, _width() / _height(), 1, 10000) - var sub_light = new THREE.HemisphereLight(0xffffff, 0x666666, 1) + var sub_light = new THREE.HemisphereLight(0xffffff, 0x666666, 1 * Math.PI) var force = new Force2() var time_unit = 0.4 var alpha = 1.0