lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
12 lines • 470 B
JavaScript
import createInternalSystem from "./utils/createInternalSystem";
export const skyLightSystem = createInternalSystem("skyLightSystem", {
update: (self) => {
const csm = self.$csm;
if (csm) {
csm.lightDirection.copy(self.position.clone().normalize().multiplyScalar(-1));
csm.update();
}
self.$backLight.position.copy(self.position.clone().multiplyScalar(-1));
}
});
//# sourceMappingURL=skyLightSystem.js.map