reduce point light sources for performance
This commit is contained in:
parent
86fd0e78ce
commit
21d2f8ab53
3 changed files with 20 additions and 20 deletions
|
|
@ -1879,18 +1879,18 @@
|
|||
gridMinor = unitMM ? 5 : 25.4 / 10;
|
||||
if (updateDark) {
|
||||
if (ctrl.dark) {
|
||||
SPACE.platform.set({ light: 0.06 });
|
||||
SPACE.platform.set({ light: 0.08 });
|
||||
SPACE.platform.setFont({rulerColor:'#888888'});
|
||||
SPACE.platform.setGrid(gridMajor, gridMinor, 0x666666, 0x333333);
|
||||
SPACE.platform.opacity(0.05);
|
||||
SPACE.sky.set({ color: 0, ambient: { intensity: 0.5 } });
|
||||
SPACE.sky.set({ color: 0, ambient: { intensity: 0.6 } });
|
||||
DOC.body.classList.add('dark');
|
||||
} else {
|
||||
SPACE.platform.set({ light: 0.06 });
|
||||
SPACE.platform.set({ light: 0.08 });
|
||||
SPACE.platform.setFont({rulerColor:'#333333'});
|
||||
SPACE.platform.setGrid(gridMajor, gridMinor, 0x999999, 0xcccccc);
|
||||
SPACE.platform.opacity(0.2);
|
||||
SPACE.sky.set({ color: 0xffffff, ambient: { intensity: 1 } });
|
||||
SPACE.sky.set({ color: 0xffffff, ambient: { intensity: 1.1 } });
|
||||
DOC.body.classList.remove('dark');
|
||||
}
|
||||
SPACE.platform.setSize();
|
||||
|
|
|
|||
Loading…
Reference in a new issue