From 39b043dcc41fda8d922c479b14807577422d33da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9lemy?= <31370477+BarthPaleologue@users.noreply.github.com> Date: Sat, 20 Jan 2024 15:14:20 +0100 Subject: [PATCH] Relicensing under GPL V3 (#16) * added CONTRIBUTING.md + update README.md * Relicensing under GPL V3 * Add license to typescript files * Add license to glsl files * added license to scss * added license to notebooks --- CONTRIBUTING.md | 64 +++ LICENSE.md | 393 ++++++++++-------- NOTICE.md | 13 - README.md | 32 +- research/corpsNoir/corpsNoir.ipynb | 22 + research/densityAtmophere/main.ipynb | 22 + research/expGradient/expGradient.ipynb | 22 + research/periodicClouds/research.ipynb | 22 + .../plafondPlancherSimplex/research.ipynb | 22 + research/powGradient/powGradient.ipynb | 22 + research/produitGradient/produit.ipynb | 22 + research/smoothMinOfSimplex/research.ipynb | 22 + research/tanhSharpen/expGradient.ipynb | 22 + .../atmosphericScatteringFragment.glsl | 17 + .../butterflyMaterial/butterflyFragment.glsl | 17 + .../butterflyMaterial/butterflyVertex.glsl | 17 + src/shaders/colorCorrection.glsl | 17 + src/shaders/flatCloudsFragment.glsl | 17 + src/shaders/gasPlanetMaterial/fragment.glsl | 17 + src/shaders/gasPlanetMaterial/vertex.glsl | 17 + src/shaders/grassMaterial/grassFragment.glsl | 17 + src/shaders/grassMaterial/grassVertex.glsl | 17 + src/shaders/mandelbulb.glsl | 17 + src/shaders/matterjet.glsl | 17 + src/shaders/oceanFragment.glsl | 17 + src/shaders/rings/rings.glsl | 17 + src/shaders/rings/ringsDensity.glsl | 17 + src/shaders/ringsFragment.glsl | 17 + src/shaders/shadowFragment.glsl | 17 + src/shaders/sierpinski.glsl | 17 + src/shaders/starMaterial/fragment.glsl | 17 + src/shaders/starMaterial/utils/lut.glsl | 17 + src/shaders/starMaterial/vertex.glsl | 17 + src/shaders/starfieldFragment.glsl | 17 + .../telluricPlanetMaterial/fragment.glsl | 17 + .../utils/computeTemperature01.glsl | 17 + .../telluricPlanetMaterial/utils/lut.glsl | 17 + .../utils/waterBoilingPointCelsius.glsl | 17 + .../telluricPlanetMaterial/vertex.glsl | 17 + src/shaders/textures/atmosphereLUT.glsl | 17 + src/shaders/textures/flatCloudLUT.glsl | 17 + src/shaders/textures/ringsLUT.glsl | 17 + src/shaders/utils/applyQuaternion.glsl | 17 + src/shaders/utils/atmosphere.glsl | 17 + src/shaders/utils/camera.glsl | 17 + .../utils/computeSpecularHighlight.glsl | 17 + src/shaders/utils/fastAcos.glsl | 17 + src/shaders/utils/fractalNoise1D.glsl | 17 + src/shaders/utils/fractalNoise2D.glsl | 19 +- src/shaders/utils/lineIntersectSphere.glsl | 17 + src/shaders/utils/noise.glsl | 17 + src/shaders/utils/noise1D.glsl | 17 + src/shaders/utils/object.glsl | 17 + src/shaders/utils/perlin3.glsl | 19 +- src/shaders/utils/rayIntersectCube.glsl | 17 + src/shaders/utils/rayIntersectSphere.glsl | 17 + src/shaders/utils/rayIntersectsPlane.glsl | 17 + src/shaders/utils/remap.glsl | 17 + src/shaders/utils/removeAxialTilt.glsl | 17 + src/shaders/utils/rotateAround.glsl | 17 + src/shaders/utils/saturate.glsl | 17 + src/shaders/utils/simplex4.glsl | 17 + src/shaders/utils/smoothSharpener.glsl | 17 + src/shaders/utils/stars.glsl | 17 + src/shaders/utils/theMessage.glsl | 17 + src/shaders/utils/toSphere.glsl | 17 + src/shaders/utils/toUV.glsl | 17 + src/shaders/utils/triplanarNormal.glsl | 17 + src/shaders/utils/uvFromWorld.glsl | 17 + src/shaders/utils/vec3Lerp.glsl | 17 + src/shaders/utils/worldFromUV.glsl | 17 + src/shaders/utils/worley.glsl | 17 + src/shaders/volumetricCloudsFragment.glsl | 17 + src/styles/bodyEditor/nav.scss | 17 + src/styles/bodyEditor/panels.scss | 17 + src/styles/bodyEditor/toolbar.scss | 17 + src/styles/helmetOverlay/helmetOverlay.scss | 17 + src/styles/index.scss | 17 + src/styles/pauseMenu/index.scss | 17 + src/styles/utils/checkbox.scss | 17 + src/styles/utils/colorPicker.scss | 17 + src/ts/architecture/boundingSphere.ts | 17 + src/ts/architecture/canHaveRings.ts | 17 + src/ts/architecture/celestialBody.ts | 17 + src/ts/architecture/hasPostProcesses.ts | 17 + src/ts/architecture/orbitalObject.ts | 17 + src/ts/architecture/physicalProperties.ts | 17 + src/ts/architecture/planet.ts | 17 + src/ts/architecture/stellarObject.ts | 17 + src/ts/architecture/transformable.ts | 17 + src/ts/assets.ts | 17 + src/ts/blackHoleDemo.ts | 17 + src/ts/bodies/cullable.ts | 17 + src/ts/characterDemo.ts | 17 + src/ts/cosmosJourneyer.ts | 17 + src/ts/debugAssets.ts | 17 + src/ts/defaultController/defaultControls.ts | 17 + src/ts/index.ts | 17 + src/ts/inputs/gamepad.ts | 17 + src/ts/inputs/input.ts | 17 + src/ts/inputs/keyboard.ts | 17 + src/ts/inputs/mouse.ts | 17 + src/ts/mandelbulb/mandelbulb.ts | 17 + src/ts/mandelbulb/mandelbulbModel.ts | 17 + src/ts/model/common.ts | 17 + src/ts/orbit/axisRenderer.ts | 17 + src/ts/orbit/orbit.ts | 17 + src/ts/orbit/orbitProperties.ts | 17 + src/ts/orbit/orbitRenderer.ts | 17 + src/ts/physicSpaceship.ts | 17 + src/ts/planets/common.ts | 17 + src/ts/planets/gasPlanet/gasPlanet.ts | 17 + src/ts/planets/gasPlanet/gasPlanetMaterial.ts | 17 + src/ts/planets/gasPlanet/gasPlanetModel.ts | 17 + .../telluricPlanet/colorSettingsInterface.ts | 17 + .../planets/telluricPlanet/telluricPlanet.ts | 17 + .../telluricPlanet/telluricPlanetMaterial.ts | 17 + .../telluricPlanet/telluricPlanetModel.ts | 17 + .../terrain/chunks/chunkForge.ts | 17 + .../terrain/chunks/chunkForgeWorkers.ts | 17 + .../terrain/chunks/chunkTree.ts | 17 + .../terrain/chunks/deleteSemaphore.ts | 17 + .../terrain/chunks/planetChunk.ts | 17 + .../terrain/chunks/taskTypes.ts | 17 + .../terrain/chunks/workerDataTypes.ts | 17 + .../terrain/chunks/workerPool.ts | 17 + .../instancePatch/hierarchyInstancePatch.ts | 17 + .../terrain/instancePatch/iPatch.ts | 17 + .../terrain/instancePatch/instancePatch.ts | 17 + .../terrain/instancePatch/matrixBuffer.ts | 17 + .../terrain/instancePatch/patchManager.ts | 17 + .../instancePatch/thinInstancePatch.ts | 17 + .../telluricPlanet/terrain/terrainSettings.ts | 17 + .../terrain/workers/buildScript.ts | 17 + src/ts/playground.ts | 17 + .../atmosphericScatteringPostProcess.ts | 17 + src/ts/postProcesses/blackHolePostProcess.ts | 17 + src/ts/postProcesses/clouds/cloudsUniforms.ts | 17 + .../clouds/flatCloudsPostProcess.ts | 17 + src/ts/postProcesses/lensFlarePostProcess.ts | 17 + src/ts/postProcesses/mandelbulbPostProcess.ts | 17 + src/ts/postProcesses/matterJetPostProcess.ts | 17 + src/ts/postProcesses/objectPostProcess.ts | 17 + src/ts/postProcesses/oceanPostProcess.ts | 17 + src/ts/postProcesses/postProcessManager.ts | 17 + src/ts/postProcesses/postProcessTypes.ts | 17 + .../postProcesses/rings/ringsPostProcess.ts | 17 + src/ts/postProcesses/rings/ringsUniform.ts | 17 + src/ts/postProcesses/shadowPostProcess.ts | 17 + src/ts/postProcesses/starfieldPostProcess.ts | 17 + src/ts/postProcesses/uniforms.ts | 17 + .../volumetricCloudsPostProcess.ts | 17 + src/ts/postProcesses/volumetricLight.ts | 17 + .../proceduralAssets/butterfly/butterfly.ts | 17 + .../butterfly/butterflyMaterial.ts | 17 + src/ts/proceduralAssets/grass/grassBlade.ts | 17 + .../proceduralAssets/grass/grassMaterial.ts | 17 + src/ts/randomizer.ts | 17 + src/ts/settings.ts | 17 + src/ts/spacelegs/characterControls.ts | 17 + src/ts/spaceship/abstractThruster.ts | 17 + src/ts/spaceship/mainThruster.ts | 17 + src/ts/spaceship/rcsThruster.ts | 17 + src/ts/spaceship/shipControls.ts | 17 + src/ts/spaceship/warpDrive.ts | 17 + src/ts/spaceshipExtended/spaceship.ts | 17 + src/ts/spaceshipExtended/thruster.ts | 17 + src/ts/spaceshipExtended/thrusterMatrix.ts | 17 + src/ts/spacestation/spaceStation.ts | 17 + src/ts/spacestation/spacestationModel.ts | 17 + src/ts/starSystem/StarSystemView.ts | 17 + src/ts/starSystem/starSystemController.ts | 17 + src/ts/starSystem/starSystemHelper.ts | 17 + src/ts/starSystem/starSystemModel.ts | 17 + src/ts/starmap/starMap.ts | 17 + src/ts/starmap/starMapUI.ts | 17 + src/ts/starmap/starSector.ts | 17 + src/ts/stellarObjects/blackHole/blackHole.ts | 17 + .../blackHole/blackHoleModel.ts | 17 + src/ts/stellarObjects/common.ts | 17 + .../stellarObjects/neutronStar/neutronStar.ts | 17 + .../neutronStar/neutronStarModel.ts | 17 + src/ts/stellarObjects/star/star.ts | 17 + src/ts/stellarObjects/star/starMaterial.ts | 17 + src/ts/stellarObjects/star/starModel.ts | 17 + src/ts/stellarObjects/stellarObject.ts | 17 + src/ts/uberCore/controls.ts | 17 + src/ts/uberCore/localDirections.ts | 17 + .../uberCore/postProcesses/colorCorrection.ts | 17 + src/ts/uberCore/postProcesses/types.ts | 17 + .../uberCore/postProcesses/uberPostProcess.ts | 17 + .../transforms/animations/interpolations.ts | 17 + .../transforms/animations/rotation.ts | 17 + .../transforms/animations/translation.ts | 17 + src/ts/uberCore/transforms/basicTransform.ts | 17 + src/ts/uberCore/uberRenderingPipeline.ts | 17 + src/ts/uberCore/uberScene.ts | 17 + src/ts/ui/bodyEditor/bodyEditor.ts | 17 + src/ts/ui/bodyEditor/editorPanel.ts | 17 + .../ui/bodyEditor/panels/atmospherePanel.ts | 17 + src/ts/ui/bodyEditor/panels/blackholePanel.ts | 17 + src/ts/ui/bodyEditor/panels/cloudsPanel.ts | 17 + src/ts/ui/bodyEditor/panels/gasCloudsPanel.ts | 17 + src/ts/ui/bodyEditor/panels/generalPanel.ts | 17 + src/ts/ui/bodyEditor/panels/oceanPanel.ts | 17 + src/ts/ui/bodyEditor/panels/physicPanel.ts | 17 + src/ts/ui/bodyEditor/panels/ringsPanel.ts | 17 + src/ts/ui/bodyEditor/panels/starPanel.ts | 17 + src/ts/ui/bodyEditor/panels/surfacePanel.ts | 17 + src/ts/ui/helmetOverlay.ts | 17 + src/ts/ui/objectOverlay.ts | 17 + src/ts/ui/pauseMenu.ts | 17 + src/ts/ui/systemUI.ts | 17 + src/ts/utils/algebra.ts | 17 + src/ts/utils/chunkUtils.ts | 17 + src/ts/utils/direction.ts | 17 + src/ts/utils/extractRelevantPostProcesses.ts | 17 + src/ts/utils/hashVec3.ts | 17 + src/ts/utils/havok.ts | 17 + src/ts/utils/html.ts | 17 + src/ts/utils/isObjectVisibleOnScreen.ts | 17 + src/ts/utils/math.ts | 17 + src/ts/utils/moveTowards.ts | 17 + src/ts/utils/nameGenerator.ts | 17 + src/ts/utils/nearestBody.ts | 17 + src/ts/utils/occlusion.ts | 17 + src/ts/utils/parseToStrings.ts | 17 + src/ts/utils/particleSystem.ts | 17 + src/ts/utils/positionNearObject.ts | 17 + src/ts/utils/specrend.ts | 3 +- src/ts/utils/systemSeed.ts | 17 + src/ts/utils/temperatureComputation.ts | 17 + src/ts/utils/thickLines.ts | 17 + src/ts/utils/waterMechanics.ts | 17 + src/ts/utils/wrappers.ts | 17 + src/ts/xr.ts | 17 + tests/unit/algebra.test.ts | 17 + tests/unit/basicTransform.test.ts | 17 + 238 files changed, 4324 insertions(+), 191 deletions(-) create mode 100644 CONTRIBUTING.md delete mode 100644 NOTICE.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..e9080e2f2 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,64 @@ +# Contributing to CosmosJourneyer + +CosmosJourneyer is an open source project and contributions are welcome! There is too much to do for one person alone. If you want to contribute, please read the following guidelines first. + +## How to contribute + +### Reporting bugs + +Finding bugs and reporting them is key to make the project better. If you find a bug, please open an issue on the [issue tracker](https://github.com/BarthPaleologue/CosmosJourneyer/issues/new?assignees=&labels=&projects=&template=bug_report.md&title=) + +### Suggesting features + +If you have an idea for a new feature, please open an issue on the [issue tracker](https://github.com/BarthPaleologue/CosmosJourneyer/issues/new?assignees=&labels=&projects=&template=feature_request.md&title=) + +### Pull requests + +Pull requests are welcome! If you want to contribute code, please follow these steps: + +1. Fork the repository +2. Create a new branch +3. Make your changes +4. Commit your changes +5. Push your changes +6. Open a pull request + +You can open a draft pull request if you want to get feedback on your changes before they are ready to be merged. + +Pull request are tested against the linter and the unit tests, make sure you run them before opening a pull request. + +Code that does not pass the linter or the unit tests will not be merged. + +## Contribution ideas + +There is still plenty to do on CosmosJourneyer. Here are some ideas of contributions you can make (with stars indicating the difficulty of the task): + +### Visuals + +- Improve the visuals of Neutron Stars to make the cone of the matter jets less visible (⭐⭐) +- Improve the visuals of Gas Giants to make them look better from closer (⭐⭐) +- Improve the visuals of the ocean using a separate mesh and FFT for wave generation (⭐⭐⭐) +- Experiment with volumetric clouds (⭐⭐⭐) + +### On-foot exploration + +- Add new character animations (using Mixamo for example) (⭐) +- Make the character animation system more scalable (⭐⭐⭐) +- Add conditions to asset scattering to avoid grass in desert and at the bottom of the ocean (⭐⭐) + +### Space gameplay + +- Add a cockpit view for spaceships (⭐⭐⭐) +- Add new spaceships and space stations (⭐⭐⭐) +- Add lasers to spaceships (⭐⭐) +- Add trade missions at space stations (⭐⭐⭐) + +### Optimization + +- Optimize the volumetric atmosphere rendering (⭐⭐⭐) +- Optimize the lens flare rendering (⭐⭐) + +### Miscellaneous + +- Improve WebGPU support (⭐⭐⭐) +- Improve the documentation (⭐) diff --git a/LICENSE.md b/LICENSE.md index 895657b9a..ee8856922 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,174 +1,219 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. \ No newline at end of file +GNU GENERAL PUBLIC LICENSE +Version 3, 29 June 2007 + +Copyright © 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble +The GNU General Public License is a free, copyleft license for software and other kinds of works. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. + +For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. + +Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. + +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS +0. Definitions. + “This License” refers to version 3 of the GNU General Public License. + +“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. + +To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. + +A “covered work” means either the unmodified Program or a work based on the Program. + +To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. + The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. + +A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. + All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. + No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. + You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. + You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + +a) The work must carry prominent notices stating that you modified it, and giving a relevant date. +b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. +c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. +d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. + You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + +a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. +b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. +c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. +d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. +e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. + “Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + +a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or +b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or +c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or +d) Limiting the use for publicity purposes of names of licensors or authors of the material; or +e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or +f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. +All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. + You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. + You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. + Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. + A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. + +A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. + If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. + +13. Use with the GNU Affero General Public License. + Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. + +14. Revised Versions of this License. + The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. + If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +Also add information on how to contact you by electronic and paper mail. + +If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. + +You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . + +The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . \ No newline at end of file diff --git a/NOTICE.md b/NOTICE.md deleted file mode 100644 index 03a8f01cd..000000000 --- a/NOTICE.md +++ /dev/null @@ -1,13 +0,0 @@ -Copyright 2022 Barthélemy Paléologue - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. \ No newline at end of file diff --git a/README.md b/README.md index 0e0de0426..9aebe7244 100644 --- a/README.md +++ b/README.md @@ -5,22 +5,52 @@ [![Jest Coverage](https://github.com/BarthPaleologue/CosmosJourneyer/actions/workflows/tests.yml/badge.svg)](https://github.com/BarthPaleologue/CosmosJourneyer/actions/workflows/tests.yml) [![License](https://img.shields.io/github/license/BarthPaleologue/planetEngine)](./LICENSE.md) -CosmosJourneyer is an open-source procedural universe running in the browser that makes space exploration accessible for everyone. +CosmosJourneyer is the procedural universe running inside a web page that makes space exploration accessible for everyone. The main website of the project is online at https://cosmosjourneyer.com/ The main deployment of the procedural universe can be accessed https://barthpaleologue.github.io/CosmosJourneyer/ +## Documentation + The documentation is online at https://barthpaleologue.github.io/CosmosJourneyer/docs/ +To build it locally, run `npm run docs` and then `npm run serve:docs` to serve it at `localhost:8081`. + +## Contributing + +Contributions are welcome! There is too much to do for one person alone. + +If you want to contribute, you will find guidelines and ideas [here](./CONTRIBUTING.md). + +## Sponsor + +The project has a ko-fi page at https://ko-fi.com/cosmosjourneyer if you feel like sponsoring the project! + +## Features + +Every telluric planet and moon has a surface that can be explored by the player using a spaceship, or by foot! + ![From Space](./coverImages/space.png) +CosmosJourneyer allows to travel from one celestial body to another without any loading screen, giving the player a seamless experience while exploring. + ![A little bit closer](./coverImages/moon.png) +Planet surfaces are filled with procedural vegetation and rocks and butterflies to make them feel more alive. + ![On the surface](./coverImages/ground.png) +CosmosJourneyer generates a virtually infinite amount of star systems that all have a star, often planets, and sometimes moons. + ![Star map](./coverImages/starmap.png) +## Contributors + +Thank you to all the people who have contributed to CosmosJourneyer! + +![Contributors](https://contrib.rocks/image?repo=BarthPaleologue/CosmosJourneyer) + ## Special Thanks - Bilal Molli for his fearless refactoring of the messy code base in its early days diff --git a/research/corpsNoir/corpsNoir.ipynb b/research/corpsNoir/corpsNoir.ipynb index 0f1bc91d2..c8e54f335 100644 --- a/research/corpsNoir/corpsNoir.ipynb +++ b/research/corpsNoir/corpsNoir.ipynb @@ -7,6 +7,28 @@ "

Rayonnement de Corps Noir

" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This file is part of CosmosJourneyer\n", + "\n", + "Copyright (C) 2024 Barthélemy Paléologue \n", + "\n", + "This program is free software: you can redistribute it and/or modify\n", + "it under the terms of the GNU General Public License as published by\n", + "the Free Software Foundation, either version 3 of the License, or\n", + "(at your option) any later version.\n", + "\n", + "This program is distributed in the hope that it will be useful,\n", + "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n", + "GNU General Public License for more details.\n", + "\n", + "You should have received a copy of the GNU General Public License\n", + "along with this program. If not, see .\n" + ] + }, { "cell_type": "code", "execution_count": 2, diff --git a/research/densityAtmophere/main.ipynb b/research/densityAtmophere/main.ipynb index f4dc875e2..186b513fe 100644 --- a/research/densityAtmophere/main.ipynb +++ b/research/densityAtmophere/main.ipynb @@ -1,5 +1,27 @@ { "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This file is part of CosmosJourneyer\n", + "\n", + "Copyright (C) 2024 Barthélemy Paléologue \n", + "\n", + "This program is free software: you can redistribute it and/or modify\n", + "it under the terms of the GNU General Public License as published by\n", + "the Free Software Foundation, either version 3 of the License, or\n", + "(at your option) any later version.\n", + "\n", + "This program is distributed in the hope that it will be useful,\n", + "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n", + "GNU General Public License for more details.\n", + "\n", + "You should have received a copy of the GNU General Public License\n", + "along with this program. If not, see ." + ] + }, { "attachments": {}, "cell_type": "markdown", diff --git a/research/expGradient/expGradient.ipynb b/research/expGradient/expGradient.ipynb index fe76e6737..2d7263120 100644 --- a/research/expGradient/expGradient.ipynb +++ b/research/expGradient/expGradient.ipynb @@ -7,6 +7,28 @@ "

Calcul du gradient de l'exponentielle d'une fonction différentiable de R³ dans R

" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This file is part of CosmosJourneyer\n", + "\n", + "Copyright (C) 2024 Barthélemy Paléologue \n", + "\n", + "This program is free software: you can redistribute it and/or modify\n", + "it under the terms of the GNU General Public License as published by\n", + "the Free Software Foundation, either version 3 of the License, or\n", + "(at your option) any later version.\n", + "\n", + "This program is distributed in the hope that it will be useful,\n", + "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n", + "GNU General Public License for more details.\n", + "\n", + "You should have received a copy of the GNU General Public License\n", + "along with this program. If not, see ." + ] + }, { "cell_type": "code", "execution_count": 1, diff --git a/research/periodicClouds/research.ipynb b/research/periodicClouds/research.ipynb index f39cfd243..b1822346c 100644 --- a/research/periodicClouds/research.ipynb +++ b/research/periodicClouds/research.ipynb @@ -1,5 +1,27 @@ { "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This file is part of CosmosJourneyer\n", + "\n", + "Copyright (C) 2024 Barthélemy Paléologue \n", + "\n", + "This program is free software: you can redistribute it and/or modify\n", + "it under the terms of the GNU General Public License as published by\n", + "the Free Software Foundation, either version 3 of the License, or\n", + "(at your option) any later version.\n", + "\n", + "This program is distributed in the hope that it will be useful,\n", + "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n", + "GNU General Public License for more details.\n", + "\n", + "You should have received a copy of the GNU General Public License\n", + "along with this program. If not, see ." + ] + }, { "cell_type": "code", "execution_count": 12, diff --git a/research/plafondPlancherSimplex/research.ipynb b/research/plafondPlancherSimplex/research.ipynb index ffa590c30..4778b146e 100644 --- a/research/plafondPlancherSimplex/research.ipynb +++ b/research/plafondPlancherSimplex/research.ipynb @@ -7,6 +7,28 @@ "

Plafonnage et Seuillage d'une fonction de R³ dans R différentiable par minimum et maximum lissé

" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This file is part of CosmosJourneyer\n", + "\n", + "Copyright (C) 2024 Barthélemy Paléologue \n", + "\n", + "This program is free software: you can redistribute it and/or modify\n", + "it under the terms of the GNU General Public License as published by\n", + "the Free Software Foundation, either version 3 of the License, or\n", + "(at your option) any later version.\n", + "\n", + "This program is distributed in the hope that it will be useful,\n", + "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n", + "GNU General Public License for more details.\n", + "\n", + "You should have received a copy of the GNU General Public License\n", + "along with this program. If not, see ." + ] + }, { "cell_type": "code", "execution_count": 4, diff --git a/research/powGradient/powGradient.ipynb b/research/powGradient/powGradient.ipynb index 7e56148ef..3b9217105 100644 --- a/research/powGradient/powGradient.ipynb +++ b/research/powGradient/powGradient.ipynb @@ -7,6 +7,28 @@ "

Calcul du gradient de la puissance alpha d'une fonction différentiable de R³ dans R

" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This file is part of CosmosJourneyer\n", + "\n", + "Copyright (C) 2024 Barthélemy Paléologue \n", + "\n", + "This program is free software: you can redistribute it and/or modify\n", + "it under the terms of the GNU General Public License as published by\n", + "the Free Software Foundation, either version 3 of the License, or\n", + "(at your option) any later version.\n", + "\n", + "This program is distributed in the hope that it will be useful,\n", + "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n", + "GNU General Public License for more details.\n", + "\n", + "You should have received a copy of the GNU General Public License\n", + "along with this program. If not, see ." + ] + }, { "cell_type": "code", "execution_count": 1, diff --git a/research/produitGradient/produit.ipynb b/research/produitGradient/produit.ipynb index 0382bedfc..a36b1d644 100644 --- a/research/produitGradient/produit.ipynb +++ b/research/produitGradient/produit.ipynb @@ -7,6 +7,28 @@ "

Calcul du gradient du produit de deux fonctions différentiables de R³ dans R

" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This file is part of CosmosJourneyer\n", + "\n", + "Copyright (C) 2024 Barthélemy Paléologue \n", + "\n", + "This program is free software: you can redistribute it and/or modify\n", + "it under the terms of the GNU General Public License as published by\n", + "the Free Software Foundation, either version 3 of the License, or\n", + "(at your option) any later version.\n", + "\n", + "This program is distributed in the hope that it will be useful,\n", + "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n", + "GNU General Public License for more details.\n", + "\n", + "You should have received a copy of the GNU General Public License\n", + "along with this program. If not, see ." + ] + }, { "cell_type": "code", "execution_count": 1, diff --git a/research/smoothMinOfSimplex/research.ipynb b/research/smoothMinOfSimplex/research.ipynb index a278a4521..6ab40fba4 100644 --- a/research/smoothMinOfSimplex/research.ipynb +++ b/research/smoothMinOfSimplex/research.ipynb @@ -7,6 +7,28 @@ "

Calcul du gradient du minimum et maximum lissé entre deux fonctions de R³->R différentiables

" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This file is part of CosmosJourneyer\n", + "\n", + "Copyright (C) 2024 Barthélemy Paléologue \n", + "\n", + "This program is free software: you can redistribute it and/or modify\n", + "it under the terms of the GNU General Public License as published by\n", + "the Free Software Foundation, either version 3 of the License, or\n", + "(at your option) any later version.\n", + "\n", + "This program is distributed in the hope that it will be useful,\n", + "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n", + "GNU General Public License for more details.\n", + "\n", + "You should have received a copy of the GNU General Public License\n", + "along with this program. If not, see ." + ] + }, { "cell_type": "code", "execution_count": 1, diff --git a/research/tanhSharpen/expGradient.ipynb b/research/tanhSharpen/expGradient.ipynb index c8d41edd9..e47dd94c4 100644 --- a/research/tanhSharpen/expGradient.ipynb +++ b/research/tanhSharpen/expGradient.ipynb @@ -7,6 +7,28 @@ "

Calcul du gradient de la composition d'un fonction de R avec la tangente hyperbolique d'interpolation

" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "This file is part of CosmosJourneyer\n", + "\n", + "Copyright (C) 2024 Barthélemy Paléologue \n", + "\n", + "This program is free software: you can redistribute it and/or modify\n", + "it under the terms of the GNU General Public License as published by\n", + "the Free Software Foundation, either version 3 of the License, or\n", + "(at your option) any later version.\n", + "\n", + "This program is distributed in the hope that it will be useful,\n", + "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n", + "GNU General Public License for more details.\n", + "\n", + "You should have received a copy of the GNU General Public License\n", + "along with this program. If not, see ." + ] + }, { "cell_type": "code", "execution_count": 6, diff --git a/src/shaders/atmosphericScatteringFragment.glsl b/src/shaders/atmosphericScatteringFragment.glsl index 4e198e7e7..327641cd1 100644 --- a/src/shaders/atmosphericScatteringFragment.glsl +++ b/src/shaders/atmosphericScatteringFragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; /* disable_uniformity_analysis */ diff --git a/src/shaders/butterflyMaterial/butterflyFragment.glsl b/src/shaders/butterflyMaterial/butterflyFragment.glsl index 9071c4f77..8ffa5ef6b 100644 --- a/src/shaders/butterflyMaterial/butterflyFragment.glsl +++ b/src/shaders/butterflyMaterial/butterflyFragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; uniform float time; diff --git a/src/shaders/butterflyMaterial/butterflyVertex.glsl b/src/shaders/butterflyMaterial/butterflyVertex.glsl index 599fc5112..15631c7bc 100644 --- a/src/shaders/butterflyMaterial/butterflyVertex.glsl +++ b/src/shaders/butterflyMaterial/butterflyVertex.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; attribute vec3 position; diff --git a/src/shaders/colorCorrection.glsl b/src/shaders/colorCorrection.glsl index b27628540..6a44d2400 100644 --- a/src/shaders/colorCorrection.glsl +++ b/src/shaders/colorCorrection.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision lowp float; uniform float exposure; diff --git a/src/shaders/flatCloudsFragment.glsl b/src/shaders/flatCloudsFragment.glsl index 846b32cf6..12254a67c 100644 --- a/src/shaders/flatCloudsFragment.glsl +++ b/src/shaders/flatCloudsFragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision lowp float; /* disable_uniformity_analysis */ diff --git a/src/shaders/gasPlanetMaterial/fragment.glsl b/src/shaders/gasPlanetMaterial/fragment.glsl index 293ee0ac6..7a4030e9b 100644 --- a/src/shaders/gasPlanetMaterial/fragment.glsl +++ b/src/shaders/gasPlanetMaterial/fragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; #define MAX_STARS 5 diff --git a/src/shaders/gasPlanetMaterial/vertex.glsl b/src/shaders/gasPlanetMaterial/vertex.glsl index f47543b94..c75159e5f 100644 --- a/src/shaders/gasPlanetMaterial/vertex.glsl +++ b/src/shaders/gasPlanetMaterial/vertex.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; attribute vec3 position; diff --git a/src/shaders/grassMaterial/grassFragment.glsl b/src/shaders/grassMaterial/grassFragment.glsl index f07546666..a2663a4ce 100644 --- a/src/shaders/grassMaterial/grassFragment.glsl +++ b/src/shaders/grassMaterial/grassFragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; uniform float time; diff --git a/src/shaders/grassMaterial/grassVertex.glsl b/src/shaders/grassMaterial/grassVertex.glsl index fa5336ee8..f58c53cbb 100644 --- a/src/shaders/grassMaterial/grassVertex.glsl +++ b/src/shaders/grassMaterial/grassVertex.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; attribute vec3 position; diff --git a/src/shaders/mandelbulb.glsl b/src/shaders/mandelbulb.glsl index 1091e12f8..5d549cd7d 100644 --- a/src/shaders/mandelbulb.glsl +++ b/src/shaders/mandelbulb.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; // based on https://www.shadertoy.com/view/tsc3Rj and https://www.shadertoy.com/view/wdjGWR diff --git a/src/shaders/matterjet.glsl b/src/shaders/matterjet.glsl index 4d12c60f2..a4459dc7d 100644 --- a/src/shaders/matterjet.glsl +++ b/src/shaders/matterjet.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision lowp float; varying vec2 vUV;// screen coordinates diff --git a/src/shaders/oceanFragment.glsl b/src/shaders/oceanFragment.glsl index efae94157..aa8fe2cb6 100644 --- a/src/shaders/oceanFragment.glsl +++ b/src/shaders/oceanFragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; /* disable_uniformity_analysis */ diff --git a/src/shaders/rings/rings.glsl b/src/shaders/rings/rings.glsl index c297688a6..8e7235d95 100644 --- a/src/shaders/rings/rings.glsl +++ b/src/shaders/rings/rings.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + uniform float rings_start; uniform float rings_end; uniform float rings_frequency; diff --git a/src/shaders/rings/ringsDensity.glsl b/src/shaders/rings/ringsDensity.glsl index 742d295bc..d325c7048 100644 --- a/src/shaders/rings/ringsDensity.glsl +++ b/src/shaders/rings/ringsDensity.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + #include "../utils/noise1D.glsl"; #include "../utils/remap.glsl"; diff --git a/src/shaders/ringsFragment.glsl b/src/shaders/ringsFragment.glsl index 527ec4bad..b0b441e90 100644 --- a/src/shaders/ringsFragment.glsl +++ b/src/shaders/ringsFragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision lowp float; /* disable_uniformity_analysis */ diff --git a/src/shaders/shadowFragment.glsl b/src/shaders/shadowFragment.glsl index a84918251..cbf045d67 100644 --- a/src/shaders/shadowFragment.glsl +++ b/src/shaders/shadowFragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision lowp float; /* disable_uniformity_analysis */ diff --git a/src/shaders/sierpinski.glsl b/src/shaders/sierpinski.glsl index 0f9c11a92..001a061f1 100644 --- a/src/shaders/sierpinski.glsl +++ b/src/shaders/sierpinski.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; // based on https://www.shadertoy.com/view/tsc3Rj and https://www.shadertoy.com/view/wdjGWR diff --git a/src/shaders/starMaterial/fragment.glsl b/src/shaders/starMaterial/fragment.glsl index 516951b7c..47af5e494 100644 --- a/src/shaders/starMaterial/fragment.glsl +++ b/src/shaders/starMaterial/fragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; varying vec3 vPosition;// position of the vertex varyingsphere space diff --git a/src/shaders/starMaterial/utils/lut.glsl b/src/shaders/starMaterial/utils/lut.glsl index 88305cd2e..ac45c5418 100644 --- a/src/shaders/starMaterial/utils/lut.glsl +++ b/src/shaders/starMaterial/utils/lut.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; varying vec2 vUV; diff --git a/src/shaders/starMaterial/vertex.glsl b/src/shaders/starMaterial/vertex.glsl index 37179acd0..a784f105d 100644 --- a/src/shaders/starMaterial/vertex.glsl +++ b/src/shaders/starMaterial/vertex.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; attribute vec3 position; diff --git a/src/shaders/starfieldFragment.glsl b/src/shaders/starfieldFragment.glsl index 70232c824..bdfaf0378 100644 --- a/src/shaders/starfieldFragment.glsl +++ b/src/shaders/starfieldFragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; /* disable_uniformity_analysis */ diff --git a/src/shaders/telluricPlanetMaterial/fragment.glsl b/src/shaders/telluricPlanetMaterial/fragment.glsl index 8c395f379..ec335dc2f 100644 --- a/src/shaders/telluricPlanetMaterial/fragment.glsl +++ b/src/shaders/telluricPlanetMaterial/fragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; varying vec3 vPositionW; diff --git a/src/shaders/telluricPlanetMaterial/utils/computeTemperature01.glsl b/src/shaders/telluricPlanetMaterial/utils/computeTemperature01.glsl index 6700492e6..97428bdce 100644 --- a/src/shaders/telluricPlanetMaterial/utils/computeTemperature01.glsl +++ b/src/shaders/telluricPlanetMaterial/utils/computeTemperature01.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + float computeTemperature01(float elevation01, float absLatitude01, float ndl, float dayDuration) { // TODO: do not hardcode both float temperatureHeightFalloff = 1.2; diff --git a/src/shaders/telluricPlanetMaterial/utils/lut.glsl b/src/shaders/telluricPlanetMaterial/utils/lut.glsl index b819dc552..5328c6c51 100644 --- a/src/shaders/telluricPlanetMaterial/utils/lut.glsl +++ b/src/shaders/telluricPlanetMaterial/utils/lut.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; varying vec2 vUV; diff --git a/src/shaders/telluricPlanetMaterial/utils/waterBoilingPointCelsius.glsl b/src/shaders/telluricPlanetMaterial/utils/waterBoilingPointCelsius.glsl index 409e74862..e0af4baf2 100644 --- a/src/shaders/telluricPlanetMaterial/utils/waterBoilingPointCelsius.glsl +++ b/src/shaders/telluricPlanetMaterial/utils/waterBoilingPointCelsius.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // https://www.omnicalculator.com/chemistry/boiling-point // https://www.wikiwand.com/en/Boiling_point#/Saturation_temperature_and_pressure // https://www.desmos.com/calculator/ctxerbh48s diff --git a/src/shaders/telluricPlanetMaterial/vertex.glsl b/src/shaders/telluricPlanetMaterial/vertex.glsl index 9c4f3e39d..bfde8d3ae 100644 --- a/src/shaders/telluricPlanetMaterial/vertex.glsl +++ b/src/shaders/telluricPlanetMaterial/vertex.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; attribute vec3 position; diff --git a/src/shaders/textures/atmosphereLUT.glsl b/src/shaders/textures/atmosphereLUT.glsl index 1d881e280..e747f4eec 100644 --- a/src/shaders/textures/atmosphereLUT.glsl +++ b/src/shaders/textures/atmosphereLUT.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; #define PI 3.1415926535897932 diff --git a/src/shaders/textures/flatCloudLUT.glsl b/src/shaders/textures/flatCloudLUT.glsl index eede9bc36..57322b632 100644 --- a/src/shaders/textures/flatCloudLUT.glsl +++ b/src/shaders/textures/flatCloudLUT.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; varying vec2 vUV; diff --git a/src/shaders/textures/ringsLUT.glsl b/src/shaders/textures/ringsLUT.glsl index 8b4146191..a82b9483c 100644 --- a/src/shaders/textures/ringsLUT.glsl +++ b/src/shaders/textures/ringsLUT.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision highp float; varying vec2 vUV; diff --git a/src/shaders/utils/applyQuaternion.glsl b/src/shaders/utils/applyQuaternion.glsl index 7efb2d599..c945f5b7c 100644 --- a/src/shaders/utils/applyQuaternion.glsl +++ b/src/shaders/utils/applyQuaternion.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + vec3 applyQuaternion(vec4 quaternion, vec3 vector) { float qx = quaternion.x; float qy = quaternion.y; diff --git a/src/shaders/utils/atmosphere.glsl b/src/shaders/utils/atmosphere.glsl index e6f1875a0..23d0d5249 100644 --- a/src/shaders/utils/atmosphere.glsl +++ b/src/shaders/utils/atmosphere.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + uniform float atmosphere_radius; uniform float atmosphere_falloff; uniform float atmosphere_sunIntensity; diff --git a/src/shaders/utils/camera.glsl b/src/shaders/utils/camera.glsl index 8acb1c84f..f9d35dfb1 100644 --- a/src/shaders/utils/camera.glsl +++ b/src/shaders/utils/camera.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + uniform vec3 camera_position; uniform mat4 camera_projection; uniform mat4 camera_view; diff --git a/src/shaders/utils/computeSpecularHighlight.glsl b/src/shaders/utils/computeSpecularHighlight.glsl index a1cea93a1..7be715032 100644 --- a/src/shaders/utils/computeSpecularHighlight.glsl +++ b/src/shaders/utils/computeSpecularHighlight.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + float computeSpecularHighlight(vec3 sunDir, vec3 rayDir, vec3 normal, float smoothness, float specularPower) { float specularAngle = acos(dot(normalize(sunDir - rayDir), normal)); float specularExponent = specularAngle / (1.0 - smoothness); diff --git a/src/shaders/utils/fastAcos.glsl b/src/shaders/utils/fastAcos.glsl index 2814ce823..31690de1f 100644 --- a/src/shaders/utils/fastAcos.glsl +++ b/src/shaders/utils/fastAcos.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // https://stackoverflow.com/questions/3380628/fast-arc-cos-algorithm float fastAcos(float x) { float negate = 0.0; diff --git a/src/shaders/utils/fractalNoise1D.glsl b/src/shaders/utils/fractalNoise1D.glsl index f900b6127..f53185921 100644 --- a/src/shaders/utils/fractalNoise1D.glsl +++ b/src/shaders/utils/fractalNoise1D.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + //--------------------------------------------------------------------------- //1D Perlin noise implementation //--------------------------------------------------------------------------- diff --git a/src/shaders/utils/fractalNoise2D.glsl b/src/shaders/utils/fractalNoise2D.glsl index 76313dc17..f5c10f0e2 100644 --- a/src/shaders/utils/fractalNoise2D.glsl +++ b/src/shaders/utils/fractalNoise2D.glsl @@ -1,4 +1,21 @@ -float rand(vec2 n) { +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +float rand(vec2 n) { return fract(sin(dot(n, vec2(12.9898, 4.1414))) * 43758.5453); } diff --git a/src/shaders/utils/lineIntersectSphere.glsl b/src/shaders/utils/lineIntersectSphere.glsl index 90fef264c..2d933f965 100644 --- a/src/shaders/utils/lineIntersectSphere.glsl +++ b/src/shaders/utils/lineIntersectSphere.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // returns whether or not a ray hits a sphere, if yes out intersection points // a good explanation of how it works : https://viclw17.github.io/2018/07/16/raytracing-ray-sphere-intersection/ bool lineIntersectSphere(vec3 rayOrigin, vec3 rayDir, vec3 spherePosition, float sphereRadius, out float t0, out float t1) { diff --git a/src/shaders/utils/noise.glsl b/src/shaders/utils/noise.glsl index b79843fa5..6508bcf03 100644 --- a/src/shaders/utils/noise.glsl +++ b/src/shaders/utils/noise.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + float mod289(float x){return x - floor(x * (1.0 / 289.0)) * 289.0;} vec4 mod289(vec4 x){return x - floor(x * (1.0 / 289.0)) * 289.0;} vec4 perm(vec4 x){return mod289(((x * 34.0) + 1.0) * x);} diff --git a/src/shaders/utils/noise1D.glsl b/src/shaders/utils/noise1D.glsl index 79cefad2c..6837d149e 100644 --- a/src/shaders/utils/noise1D.glsl +++ b/src/shaders/utils/noise1D.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + float mod289(float x){ return x - floor(x * (1.0 / 289.0)) * 289.0; } vec4 mod289(vec4 x){ return x - floor(x * (1.0 / 289.0)) * 289.0; } vec4 perm(vec4 x){ return mod289(((x * 34.0) + 1.0) * x); } diff --git a/src/shaders/utils/object.glsl b/src/shaders/utils/object.glsl index d950c2aa1..6268b0a2b 100644 --- a/src/shaders/utils/object.glsl +++ b/src/shaders/utils/object.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + uniform vec3 object_position; uniform float object_radius; uniform vec3 object_rotationAxis; \ No newline at end of file diff --git a/src/shaders/utils/perlin3.glsl b/src/shaders/utils/perlin3.glsl index 483a34975..b8734ebb0 100644 --- a/src/shaders/utils/perlin3.glsl +++ b/src/shaders/utils/perlin3.glsl @@ -1,4 +1,21 @@ -// Classic Perlin 3D Noise +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +// Classic Perlin 3D Noise // by Stefan Gustavson // vec4 permute(vec4 x){return mod(((x*34.0)+1.0)*x, 289.0);} diff --git a/src/shaders/utils/rayIntersectCube.glsl b/src/shaders/utils/rayIntersectCube.glsl index 2ab11d424..826c44a57 100644 --- a/src/shaders/utils/rayIntersectCube.glsl +++ b/src/shaders/utils/rayIntersectCube.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // from https://www.scratchapixel.com/lessons/3d-basic-rendering/minimal-ray-tracer-rendering-simple-shapes/ray-box-intersection bool rayIntersectCube(vec3 rayOrigin, vec3 rayDir, out float tmax, out float tmin) { diff --git a/src/shaders/utils/rayIntersectSphere.glsl b/src/shaders/utils/rayIntersectSphere.glsl index e93701034..824b249a5 100644 --- a/src/shaders/utils/rayIntersectSphere.glsl +++ b/src/shaders/utils/rayIntersectSphere.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // A narrower version of line intersect sphere. It will return true only when the intersection is at a positive distance from the ray origin. bool rayIntersectSphere(vec3 rayOrigin, vec3 rayDir, vec3 spherePosition, float sphereRadius, out float t0, out float t1) { vec3 relativeOrigin = rayOrigin - spherePosition;// rayOrigin in sphere space diff --git a/src/shaders/utils/rayIntersectsPlane.glsl b/src/shaders/utils/rayIntersectsPlane.glsl index 6c8782f98..20e3521ef 100644 --- a/src/shaders/utils/rayIntersectsPlane.glsl +++ b/src/shaders/utils/rayIntersectsPlane.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + bool rayIntersectsPlane(vec3 rayOrigin, vec3 rayDir, vec3 planePosition, vec3 planeNormal, float tolerance, out float t) { float denom = dot(rayDir, planeNormal); if (abs(denom) <= tolerance) return false;// ray is parallel to the plane diff --git a/src/shaders/utils/remap.glsl b/src/shaders/utils/remap.glsl index 64b66501a..17820cd5d 100644 --- a/src/shaders/utils/remap.glsl +++ b/src/shaders/utils/remap.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // remap a value comprised between low1 and high1 to a value between low2 and high2 float remap(float value, float low1, float high1, float low2, float high2) { return low2 + (value - low1) * (high2 - low2) / (high1 - low1); diff --git a/src/shaders/utils/removeAxialTilt.glsl b/src/shaders/utils/removeAxialTilt.glsl index cc667ba70..41955debb 100644 --- a/src/shaders/utils/removeAxialTilt.glsl +++ b/src/shaders/utils/removeAxialTilt.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + vec3 removeAxialTilt(vec3 tiltedVector, vec3 tiltedAxis) { vec3 targetAxis = vec3(0.0, 1.0, 0.0); vec3 rotationRemovalAxis = cross(tiltedAxis, targetAxis); diff --git a/src/shaders/utils/rotateAround.glsl b/src/shaders/utils/rotateAround.glsl index 2c3302566..09a5cfd71 100644 --- a/src/shaders/utils/rotateAround.glsl +++ b/src/shaders/utils/rotateAround.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // rotation using https://www.wikiwand.com/en/Rodrigues%27_rotation_formula vec3 rotateAround(vec3 vector, vec3 axis, float theta) { // Please note that unit vector are required, i did not divided by the norms diff --git a/src/shaders/utils/saturate.glsl b/src/shaders/utils/saturate.glsl index d56e8e2c8..0c40a3ddd 100644 --- a/src/shaders/utils/saturate.glsl +++ b/src/shaders/utils/saturate.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + float saturate(float value) { if(value < 0.0) return 0.0; if(value > 1.0) return 1.0; diff --git a/src/shaders/utils/simplex4.glsl b/src/shaders/utils/simplex4.glsl index 0c3682323..4e3fd31ec 100644 --- a/src/shaders/utils/simplex4.glsl +++ b/src/shaders/utils/simplex4.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // // Description : Array and textureless GLSL 2D/3D/4D simplex // noise functions. diff --git a/src/shaders/utils/smoothSharpener.glsl b/src/shaders/utils/smoothSharpener.glsl index fe2c25ba6..f3b31f397 100644 --- a/src/shaders/utils/smoothSharpener.glsl +++ b/src/shaders/utils/smoothSharpener.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + float smoothSharpener(float x, float s) { float offset = 0.5 - (1.0 / s); return smoothstep(offset, 1.0 - offset, x); diff --git a/src/shaders/utils/stars.glsl b/src/shaders/utils/stars.glsl index 91c4f79a3..15471b13c 100644 --- a/src/shaders/utils/stars.glsl +++ b/src/shaders/utils/stars.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + #define MAX_STARS 5 uniform vec3 star_positions[MAX_STARS]; diff --git a/src/shaders/utils/theMessage.glsl b/src/shaders/utils/theMessage.glsl index 7d430d26a..4331d63df 100644 --- a/src/shaders/utils/theMessage.glsl +++ b/src/shaders/utils/theMessage.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + float theMessage(float x) { return 0.010*cos(1.0*0.020*x)-0.016*sin(1.0*0.020*x)-0.010*cos(2.0*0.020*x) -0.035*cos(3.0*0.020*x)-0.000*sin(3.0*0.020*x) diff --git a/src/shaders/utils/toSphere.glsl b/src/shaders/utils/toSphere.glsl index b6babe6e3..504f39c85 100644 --- a/src/shaders/utils/toSphere.glsl +++ b/src/shaders/utils/toSphere.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + #define PI 3.1415926535897932384626433832795 // Uv range: [0, 1] diff --git a/src/shaders/utils/toUV.glsl b/src/shaders/utils/toUV.glsl index e28576cb4..ba5d54d61 100644 --- a/src/shaders/utils/toUV.glsl +++ b/src/shaders/utils/toUV.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + #define PI 3.1415926535897932384626433832795 vec2 toUV(in vec3 n) diff --git a/src/shaders/utils/triplanarNormal.glsl b/src/shaders/utils/triplanarNormal.glsl index b971b18ed..1ed8cd919 100644 --- a/src/shaders/utils/triplanarNormal.glsl +++ b/src/shaders/utils/triplanarNormal.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // https://bgolus.medium.com/normal-mapping-for-a-triplanar-shader-10bf39dca05a #define inline vec3 triplanarNormal(vec3 position, vec3 surfaceNormal, sampler2D normalMap, float scale, float sharpness, float normalStrength) { diff --git a/src/shaders/utils/uvFromWorld.glsl b/src/shaders/utils/uvFromWorld.glsl index e5680434c..693e8ac18 100644 --- a/src/shaders/utils/uvFromWorld.glsl +++ b/src/shaders/utils/uvFromWorld.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + vec2 uvFromWorld(vec3 pos, mat4 projection, mat4 view) { vec4 uvRaw = projection * view * vec4(pos, 1.0); vec2 uv = uvRaw.xy / uvRaw.w; diff --git a/src/shaders/utils/vec3Lerp.glsl b/src/shaders/utils/vec3Lerp.glsl index d54cf1385..aa2f81b70 100644 --- a/src/shaders/utils/vec3Lerp.glsl +++ b/src/shaders/utils/vec3Lerp.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + vec3 lerp(vec3 v1, vec3 v2, float s) { return s * v1 + (1.0 - s) * v2; } \ No newline at end of file diff --git a/src/shaders/utils/worldFromUV.glsl b/src/shaders/utils/worldFromUV.glsl index 1967bdca4..74b146687 100644 --- a/src/shaders/utils/worldFromUV.glsl +++ b/src/shaders/utils/worldFromUV.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // compute the world position of a pixel from its uv coordinates // This is an evolution from the code found here // https://forum.babylonjs.com/t/pixel-position-in-world-space-from-fragment-postprocess-shader-issue/30232 diff --git a/src/shaders/utils/worley.glsl b/src/shaders/utils/worley.glsl index 305805a16..3a63bea9c 100644 --- a/src/shaders/utils/worley.glsl +++ b/src/shaders/utils/worley.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // Cellular noise ("Worley noise") in 3D in GLSL. // Copyright (c) Stefan Gustavson 2011-04-19. All rights reserved. // This code is released under the conditions of the MIT license. diff --git a/src/shaders/volumetricCloudsFragment.glsl b/src/shaders/volumetricCloudsFragment.glsl index 3180ab1e6..65e6e83d1 100644 --- a/src/shaders/volumetricCloudsFragment.glsl +++ b/src/shaders/volumetricCloudsFragment.glsl @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + precision lowp float; #define PI 3.1415926535897932 diff --git a/src/styles/bodyEditor/nav.scss b/src/styles/bodyEditor/nav.scss index 1445e5ca1..3b8f98ba7 100644 --- a/src/styles/bodyEditor/nav.scss +++ b/src/styles/bodyEditor/nav.scss @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + nav { position: absolute; top: 0; diff --git a/src/styles/bodyEditor/panels.scss b/src/styles/bodyEditor/panels.scss index 2eb089d9e..daac3715e 100644 --- a/src/styles/bodyEditor/panels.scss +++ b/src/styles/bodyEditor/panels.scss @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + #editorPanelContainer { float: right; position: relative; diff --git a/src/styles/bodyEditor/toolbar.scss b/src/styles/bodyEditor/toolbar.scss index 1ae8e2186..17fa54d14 100644 --- a/src/styles/bodyEditor/toolbar.scss +++ b/src/styles/bodyEditor/toolbar.scss @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + #toolbar { position: absolute; bottom: 0; diff --git a/src/styles/helmetOverlay/helmetOverlay.scss b/src/styles/helmetOverlay/helmetOverlay.scss index 405eee241..92bf41416 100644 --- a/src/styles/helmetOverlay/helmetOverlay.scss +++ b/src/styles/helmetOverlay/helmetOverlay.scss @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + #helmetOverlay { position: absolute; top: 0; diff --git a/src/styles/index.scss b/src/styles/index.scss index e837e0312..9cb2fe950 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + *, *::before, *::after { diff --git a/src/styles/pauseMenu/index.scss b/src/styles/pauseMenu/index.scss index 5a8ae5a95..cbbf2129d 100644 --- a/src/styles/pauseMenu/index.scss +++ b/src/styles/pauseMenu/index.scss @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + #pauseMask { z-index: 9; position: absolute; diff --git a/src/styles/utils/checkbox.scss b/src/styles/utils/checkbox.scss index db6f89b2f..e6cb15057 100644 --- a/src/styles/utils/checkbox.scss +++ b/src/styles/utils/checkbox.scss @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + /* Customize the label (the container) */ .container { margin-left: 5px; diff --git a/src/styles/utils/colorPicker.scss b/src/styles/utils/colorPicker.scss index 1ac8c85cd..9a5754900 100644 --- a/src/styles/utils/colorPicker.scss +++ b/src/styles/utils/colorPicker.scss @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + .colorPickerContainer { p { display: inline-block; diff --git a/src/ts/architecture/boundingSphere.ts b/src/ts/architecture/boundingSphere.ts index 8ee857f3d..a3905f39d 100644 --- a/src/ts/architecture/boundingSphere.ts +++ b/src/ts/architecture/boundingSphere.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + /** * Describes all object that have a physical extent: they can be enclosed in a sphere of a certain radius */ diff --git a/src/ts/architecture/canHaveRings.ts b/src/ts/architecture/canHaveRings.ts index 6add72311..739782043 100644 --- a/src/ts/architecture/canHaveRings.ts +++ b/src/ts/architecture/canHaveRings.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { RingsUniforms } from "../postProcesses/rings/ringsUniform"; /** diff --git a/src/ts/architecture/celestialBody.ts b/src/ts/architecture/celestialBody.ts index b6d8f89cc..adcc90839 100644 --- a/src/ts/architecture/celestialBody.ts +++ b/src/ts/architecture/celestialBody.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { OrbitalObject, OrbitalObjectModel } from "./orbitalObject"; import { HasPostProcesses } from "./hasPostProcesses"; import { CanHaveRings } from "./canHaveRings"; diff --git a/src/ts/architecture/hasPostProcesses.ts b/src/ts/architecture/hasPostProcesses.ts index 29cb70862..68998bb6d 100644 --- a/src/ts/architecture/hasPostProcesses.ts +++ b/src/ts/architecture/hasPostProcesses.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { PostProcessType } from "../postProcesses/postProcessTypes"; export interface HasPostProcesses { diff --git a/src/ts/architecture/orbitalObject.ts b/src/ts/architecture/orbitalObject.ts index eb6145006..3dc064630 100644 --- a/src/ts/architecture/orbitalObject.ts +++ b/src/ts/architecture/orbitalObject.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Transformable } from "./transformable"; import { BoundingSphere } from "./boundingSphere"; import { OrbitProperties } from "../orbit/orbitProperties"; diff --git a/src/ts/architecture/physicalProperties.ts b/src/ts/architecture/physicalProperties.ts index 3ef753687..ed16d63a8 100644 --- a/src/ts/architecture/physicalProperties.ts +++ b/src/ts/architecture/physicalProperties.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + export type OrbitalObjectPhysicalProperties = { mass: number; rotationPeriod: number; diff --git a/src/ts/architecture/planet.ts b/src/ts/architecture/planet.ts index f574ff7fa..48538795d 100644 --- a/src/ts/architecture/planet.ts +++ b/src/ts/architecture/planet.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Camera } from "@babylonjs/core/Cameras/camera"; import { CelestialBody, CelestialBodyModel } from "./celestialBody"; import { PlanetPhysicalProperties } from "./physicalProperties"; diff --git a/src/ts/architecture/stellarObject.ts b/src/ts/architecture/stellarObject.ts index b1b88df0c..e19892d90 100644 --- a/src/ts/architecture/stellarObject.ts +++ b/src/ts/architecture/stellarObject.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { PointLight } from "@babylonjs/core/Lights/pointLight"; import { CelestialBody, CelestialBodyModel } from "./celestialBody"; import { STELLAR_TYPE } from "../stellarObjects/common"; diff --git a/src/ts/architecture/transformable.ts b/src/ts/architecture/transformable.ts index 60ad29705..d572f57b2 100644 --- a/src/ts/architecture/transformable.ts +++ b/src/ts/architecture/transformable.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { TransformNode } from "@babylonjs/core/Meshes"; /** diff --git a/src/ts/assets.ts b/src/ts/assets.ts index fac4de48c..7edff25b2 100644 --- a/src/ts/assets.ts +++ b/src/ts/assets.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import "@babylonjs/loaders"; import "@babylonjs/core/Loading/Plugins/babylonFileLoader"; import "@babylonjs/core/Loading/loadingScreen"; diff --git a/src/ts/blackHoleDemo.ts b/src/ts/blackHoleDemo.ts index 1924bf04d..e28597cc7 100644 --- a/src/ts/blackHoleDemo.ts +++ b/src/ts/blackHoleDemo.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import "../styles/index.scss"; import { StarSystemController } from "./starSystem/starSystemController"; diff --git a/src/ts/bodies/cullable.ts b/src/ts/bodies/cullable.ts index 6f0d314e3..2f67d5af1 100644 --- a/src/ts/bodies/cullable.ts +++ b/src/ts/bodies/cullable.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Camera } from "@babylonjs/core/Cameras/camera"; export interface Cullable { diff --git a/src/ts/characterDemo.ts b/src/ts/characterDemo.ts index db31d8497..10f19c926 100644 --- a/src/ts/characterDemo.ts +++ b/src/ts/characterDemo.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Engine } from "@babylonjs/core/Engines/engine"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { MeshBuilder } from "@babylonjs/core/Meshes/meshBuilder"; diff --git a/src/ts/cosmosJourneyer.ts b/src/ts/cosmosJourneyer.ts index 9e0a78a1b..625d35b1d 100644 --- a/src/ts/cosmosJourneyer.ts +++ b/src/ts/cosmosJourneyer.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Assets } from "./assets"; import { StarSystemController } from "./starSystem/starSystemController"; import { Engine } from "@babylonjs/core/Engines/engine"; diff --git a/src/ts/debugAssets.ts b/src/ts/debugAssets.ts index 5c865d345..56ae1bbb1 100644 --- a/src/ts/debugAssets.ts +++ b/src/ts/debugAssets.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import "../styles/index.scss"; import { Engine } from "@babylonjs/core/Engines/engine"; diff --git a/src/ts/defaultController/defaultControls.ts b/src/ts/defaultController/defaultControls.ts index d261898aa..cdf74e445 100644 --- a/src/ts/defaultController/defaultControls.ts +++ b/src/ts/defaultController/defaultControls.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Controls } from "../uberCore/controls"; import { Scene } from "@babylonjs/core/scene"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; diff --git a/src/ts/index.ts b/src/ts/index.ts index 7ba4f0b5a..cfb732b96 100644 --- a/src/ts/index.ts +++ b/src/ts/index.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import "../styles/index.scss"; import { StarSystemController } from "./starSystem/starSystemController"; diff --git a/src/ts/inputs/gamepad.ts b/src/ts/inputs/gamepad.ts index 969cd1f62..0c448760c 100644 --- a/src/ts/inputs/gamepad.ts +++ b/src/ts/inputs/gamepad.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + /** * All possible buttons on a gamepad */ diff --git a/src/ts/inputs/input.ts b/src/ts/inputs/input.ts index 5df458a22..b7856eb7d 100644 --- a/src/ts/inputs/input.ts +++ b/src/ts/inputs/input.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + export enum InputType { KEYBOARD, MOUSE, diff --git a/src/ts/inputs/keyboard.ts b/src/ts/inputs/keyboard.ts index 58b48ff02..21e600b22 100644 --- a/src/ts/inputs/keyboard.ts +++ b/src/ts/inputs/keyboard.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Input, InputType } from "./input"; export class Keyboard implements Input { diff --git a/src/ts/inputs/mouse.ts b/src/ts/inputs/mouse.ts index 9169b0eca..a26921eec 100644 --- a/src/ts/inputs/mouse.ts +++ b/src/ts/inputs/mouse.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Observable } from "@babylonjs/core/Misc/observable"; import { Input, InputType } from "./input"; diff --git a/src/ts/mandelbulb/mandelbulb.ts b/src/ts/mandelbulb/mandelbulb.ts index 23790691a..8addc8fc2 100644 --- a/src/ts/mandelbulb/mandelbulb.ts +++ b/src/ts/mandelbulb/mandelbulb.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Camera } from "@babylonjs/core/Cameras/camera"; import { MandelbulbModel } from "./mandelbulbModel"; import { PostProcessType } from "../postProcesses/postProcessTypes"; diff --git a/src/ts/mandelbulb/mandelbulbModel.ts b/src/ts/mandelbulb/mandelbulbModel.ts index a65cd3673..9c778f5f3 100644 --- a/src/ts/mandelbulb/mandelbulbModel.ts +++ b/src/ts/mandelbulb/mandelbulbModel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { seededSquirrelNoise } from "squirrel-noise"; import { OrbitProperties } from "../orbit/orbitProperties"; diff --git a/src/ts/model/common.ts b/src/ts/model/common.ts index 494270521..1ce9e182f 100644 --- a/src/ts/model/common.ts +++ b/src/ts/model/common.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + export enum GENERATION_STEPS { AXIAL_TILT = 100, ORBIT = 200, diff --git a/src/ts/orbit/axisRenderer.ts b/src/ts/orbit/axisRenderer.ts index 5c5f5190f..db3919aba 100644 --- a/src/ts/orbit/axisRenderer.ts +++ b/src/ts/orbit/axisRenderer.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { LinesMesh, MeshBuilder } from "@babylonjs/core/Meshes"; import { Color3, Vector3 } from "@babylonjs/core/Maths/math"; import { StandardMaterial } from "@babylonjs/core/Materials/standardMaterial"; diff --git a/src/ts/orbit/orbit.ts b/src/ts/orbit/orbit.ts index eae49b3ea..4e730307d 100644 --- a/src/ts/orbit/orbit.ts +++ b/src/ts/orbit/orbit.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Matrix, Vector3 } from "@babylonjs/core/Maths/math.vector"; import { OrbitProperties } from "./orbitProperties"; diff --git a/src/ts/orbit/orbitProperties.ts b/src/ts/orbit/orbitProperties.ts index aac3f4b93..7e13eca0c 100644 --- a/src/ts/orbit/orbitProperties.ts +++ b/src/ts/orbit/orbitProperties.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math"; interface OrbitProps { diff --git a/src/ts/orbit/orbitRenderer.ts b/src/ts/orbit/orbitRenderer.ts index 18ce5c1cc..417428bca 100644 --- a/src/ts/orbit/orbitRenderer.ts +++ b/src/ts/orbit/orbitRenderer.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { LinesMesh, MeshBuilder } from "@babylonjs/core/Meshes"; import { Color3, Vector3 } from "@babylonjs/core/Maths/math"; import { StandardMaterial } from "@babylonjs/core/Materials/standardMaterial"; diff --git a/src/ts/physicSpaceship.ts b/src/ts/physicSpaceship.ts index c3eb98099..22d374b2a 100644 --- a/src/ts/physicSpaceship.ts +++ b/src/ts/physicSpaceship.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Engine } from "@babylonjs/core/Engines/engine"; import { ArcRotateCamera } from "@babylonjs/core/Cameras/arcRotateCamera"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; diff --git a/src/ts/planets/common.ts b/src/ts/planets/common.ts index 5f0fa8c3a..2b968fd20 100644 --- a/src/ts/planets/common.ts +++ b/src/ts/planets/common.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { centeredRand } from "extended-random"; import { GENERATION_STEPS } from "../model/common"; import { Settings } from "../settings"; diff --git a/src/ts/planets/gasPlanet/gasPlanet.ts b/src/ts/planets/gasPlanet/gasPlanet.ts index 43783fd4c..ee656a425 100644 --- a/src/ts/planets/gasPlanet/gasPlanet.ts +++ b/src/ts/planets/gasPlanet/gasPlanet.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { GasPlanetMaterial } from "./gasPlanetMaterial"; import { UberScene } from "../../uberCore/uberScene"; import { GasPlanetModel } from "./gasPlanetModel"; diff --git a/src/ts/planets/gasPlanet/gasPlanetMaterial.ts b/src/ts/planets/gasPlanet/gasPlanetMaterial.ts index 52743ceee..0cc306500 100644 --- a/src/ts/planets/gasPlanet/gasPlanetMaterial.ts +++ b/src/ts/planets/gasPlanet/gasPlanetMaterial.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import surfaceMaterialFragment from "../../../shaders/gasPlanetMaterial/fragment.glsl"; import surfaceMaterialVertex from "../../../shaders/gasPlanetMaterial/vertex.glsl"; import { GazColorSettings } from "../telluricPlanet/colorSettingsInterface"; diff --git a/src/ts/planets/gasPlanet/gasPlanetModel.ts b/src/ts/planets/gasPlanet/gasPlanetModel.ts index 198b33e4c..fa9285f2a 100644 --- a/src/ts/planets/gasPlanet/gasPlanetModel.ts +++ b/src/ts/planets/gasPlanet/gasPlanetModel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { seededSquirrelNoise } from "squirrel-noise"; import { normalRandom, randRangeInt, uniformRandBool } from "extended-random"; import { Settings } from "../../settings"; diff --git a/src/ts/planets/telluricPlanet/colorSettingsInterface.ts b/src/ts/planets/telluricPlanet/colorSettingsInterface.ts index f3f3eacab..1a71787a7 100644 --- a/src/ts/planets/telluricPlanet/colorSettingsInterface.ts +++ b/src/ts/planets/telluricPlanet/colorSettingsInterface.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Color3 } from "@babylonjs/core/Maths/math.color"; export enum ColorMode { diff --git a/src/ts/planets/telluricPlanet/telluricPlanet.ts b/src/ts/planets/telluricPlanet/telluricPlanet.ts index c300d1b0a..552ec3e7e 100644 --- a/src/ts/planets/telluricPlanet/telluricPlanet.ts +++ b/src/ts/planets/telluricPlanet/telluricPlanet.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Direction } from "../../utils/direction"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; diff --git a/src/ts/planets/telluricPlanet/telluricPlanetMaterial.ts b/src/ts/planets/telluricPlanet/telluricPlanetMaterial.ts index 013f3cd57..34c58ea8c 100644 --- a/src/ts/planets/telluricPlanet/telluricPlanetMaterial.ts +++ b/src/ts/planets/telluricPlanet/telluricPlanetMaterial.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { ColorMode, ColorSettings } from "./colorSettingsInterface"; import surfaceMaterialFragment from "../../../shaders/telluricPlanetMaterial/fragment.glsl"; diff --git a/src/ts/planets/telluricPlanet/telluricPlanetModel.ts b/src/ts/planets/telluricPlanet/telluricPlanetModel.ts index 051783833..f6bd3fcae 100644 --- a/src/ts/planets/telluricPlanet/telluricPlanetModel.ts +++ b/src/ts/planets/telluricPlanet/telluricPlanetModel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { seededSquirrelNoise } from "squirrel-noise"; import { normalRandom, randRangeInt, uniformRandBool } from "extended-random"; import { Settings } from "../../settings"; diff --git a/src/ts/planets/telluricPlanet/terrain/chunks/chunkForge.ts b/src/ts/planets/telluricPlanet/terrain/chunks/chunkForge.ts index 96be5dac3..f387bff95 100644 --- a/src/ts/planets/telluricPlanet/terrain/chunks/chunkForge.ts +++ b/src/ts/planets/telluricPlanet/terrain/chunks/chunkForge.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { BuildTask } from "./taskTypes"; export interface ChunkForge { diff --git a/src/ts/planets/telluricPlanet/terrain/chunks/chunkForgeWorkers.ts b/src/ts/planets/telluricPlanet/terrain/chunks/chunkForgeWorkers.ts index 32f52054c..55fdef96c 100644 --- a/src/ts/planets/telluricPlanet/terrain/chunks/chunkForgeWorkers.ts +++ b/src/ts/planets/telluricPlanet/terrain/chunks/chunkForgeWorkers.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { TransferBuildData } from "./workerDataTypes"; import { ApplyTask, BuildTask, ReturnedChunkData, TaskType } from "./taskTypes"; import { WorkerPool } from "./workerPool"; diff --git a/src/ts/planets/telluricPlanet/terrain/chunks/chunkTree.ts b/src/ts/planets/telluricPlanet/terrain/chunks/chunkTree.ts index 040775e4f..9b89780bf 100644 --- a/src/ts/planets/telluricPlanet/terrain/chunks/chunkTree.ts +++ b/src/ts/planets/telluricPlanet/terrain/chunks/chunkTree.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { PlanetChunk } from "./planetChunk"; import { Direction } from "../../../../utils/direction"; import { BuildTask, TaskType } from "./taskTypes"; diff --git a/src/ts/planets/telluricPlanet/terrain/chunks/deleteSemaphore.ts b/src/ts/planets/telluricPlanet/terrain/chunks/deleteSemaphore.ts index 295a3bb44..1ab529923 100644 --- a/src/ts/planets/telluricPlanet/terrain/chunks/deleteSemaphore.ts +++ b/src/ts/planets/telluricPlanet/terrain/chunks/deleteSemaphore.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { PlanetChunk } from "./planetChunk"; /** diff --git a/src/ts/planets/telluricPlanet/terrain/chunks/planetChunk.ts b/src/ts/planets/telluricPlanet/terrain/chunks/planetChunk.ts index 1b798f1fd..781b8497a 100644 --- a/src/ts/planets/telluricPlanet/terrain/chunks/planetChunk.ts +++ b/src/ts/planets/telluricPlanet/terrain/chunks/planetChunk.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Direction, getQuaternionFromDirection } from "../../../../utils/direction"; import { getChunkPlaneSpacePositionFromPath } from "../../../../utils/chunkUtils"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; diff --git a/src/ts/planets/telluricPlanet/terrain/chunks/taskTypes.ts b/src/ts/planets/telluricPlanet/terrain/chunks/taskTypes.ts index 1ae6b245b..4c636595d 100644 --- a/src/ts/planets/telluricPlanet/terrain/chunks/taskTypes.ts +++ b/src/ts/planets/telluricPlanet/terrain/chunks/taskTypes.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Direction } from "../../../../utils/direction"; import { PlanetChunk } from "./planetChunk"; import { TerrainSettings } from "../terrainSettings"; diff --git a/src/ts/planets/telluricPlanet/terrain/chunks/workerDataTypes.ts b/src/ts/planets/telluricPlanet/terrain/chunks/workerDataTypes.ts index c0804f598..ff501b128 100644 --- a/src/ts/planets/telluricPlanet/terrain/chunks/workerDataTypes.ts +++ b/src/ts/planets/telluricPlanet/terrain/chunks/workerDataTypes.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Direction } from "../../../../utils/direction"; import { TerrainSettings } from "../terrainSettings"; import { TaskType } from "./taskTypes"; diff --git a/src/ts/planets/telluricPlanet/terrain/chunks/workerPool.ts b/src/ts/planets/telluricPlanet/terrain/chunks/workerPool.ts index 9a3179700..a00dc61b6 100644 --- a/src/ts/planets/telluricPlanet/terrain/chunks/workerPool.ts +++ b/src/ts/planets/telluricPlanet/terrain/chunks/workerPool.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { BuildTask } from "./taskTypes"; /*export class BuildTaskQueue { diff --git a/src/ts/planets/telluricPlanet/terrain/instancePatch/hierarchyInstancePatch.ts b/src/ts/planets/telluricPlanet/terrain/instancePatch/hierarchyInstancePatch.ts index 79c2dac60..61b8beaa1 100644 --- a/src/ts/planets/telluricPlanet/terrain/instancePatch/hierarchyInstancePatch.ts +++ b/src/ts/planets/telluricPlanet/terrain/instancePatch/hierarchyInstancePatch.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Quaternion, Vector3 } from "@babylonjs/core/Maths/math.vector"; import { IPatch } from "./iPatch"; import { createSquareMatrixBuffer, decomposeModelMatrix } from "./matrixBuffer"; diff --git a/src/ts/planets/telluricPlanet/terrain/instancePatch/iPatch.ts b/src/ts/planets/telluricPlanet/terrain/instancePatch/iPatch.ts index 04d04630d..32a7d6db3 100644 --- a/src/ts/planets/telluricPlanet/terrain/instancePatch/iPatch.ts +++ b/src/ts/planets/telluricPlanet/terrain/instancePatch/iPatch.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { TransformNode } from "@babylonjs/core/Meshes/transformNode"; export interface IPatch { diff --git a/src/ts/planets/telluricPlanet/terrain/instancePatch/instancePatch.ts b/src/ts/planets/telluricPlanet/terrain/instancePatch/instancePatch.ts index 8f6eecafd..3f0157b0f 100644 --- a/src/ts/planets/telluricPlanet/terrain/instancePatch/instancePatch.ts +++ b/src/ts/planets/telluricPlanet/terrain/instancePatch/instancePatch.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Quaternion, Vector3 } from "@babylonjs/core/Maths/math.vector"; import { Mesh } from "@babylonjs/core/Meshes/mesh"; import { InstancedMesh } from "@babylonjs/core/Meshes/instancedMesh"; diff --git a/src/ts/planets/telluricPlanet/terrain/instancePatch/matrixBuffer.ts b/src/ts/planets/telluricPlanet/terrain/instancePatch/matrixBuffer.ts index f3a39d863..90644165c 100644 --- a/src/ts/planets/telluricPlanet/terrain/instancePatch/matrixBuffer.ts +++ b/src/ts/planets/telluricPlanet/terrain/instancePatch/matrixBuffer.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Matrix, Quaternion, Vector3 } from "@babylonjs/core/Maths/math.vector"; export function downSample(matrixBuffer: Float32Array, stride: number): Float32Array { diff --git a/src/ts/planets/telluricPlanet/terrain/instancePatch/patchManager.ts b/src/ts/planets/telluricPlanet/terrain/instancePatch/patchManager.ts index 635fc434e..d540be9a1 100644 --- a/src/ts/planets/telluricPlanet/terrain/instancePatch/patchManager.ts +++ b/src/ts/planets/telluricPlanet/terrain/instancePatch/patchManager.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Mesh } from "@babylonjs/core/Meshes/mesh"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { ThinInstancePatch } from "./thinInstancePatch"; diff --git a/src/ts/planets/telluricPlanet/terrain/instancePatch/thinInstancePatch.ts b/src/ts/planets/telluricPlanet/terrain/instancePatch/thinInstancePatch.ts index c65aaaf49..f36258cae 100644 --- a/src/ts/planets/telluricPlanet/terrain/instancePatch/thinInstancePatch.ts +++ b/src/ts/planets/telluricPlanet/terrain/instancePatch/thinInstancePatch.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Mesh } from "@babylonjs/core/Meshes/mesh"; import "@babylonjs/core/Meshes/thinInstanceMesh"; import { TransformNode } from "@babylonjs/core/Meshes/transformNode"; diff --git a/src/ts/planets/telluricPlanet/terrain/terrainSettings.ts b/src/ts/planets/telluricPlanet/terrain/terrainSettings.ts index 58cf7dcde..d9635a59b 100644 --- a/src/ts/planets/telluricPlanet/terrain/terrainSettings.ts +++ b/src/ts/planets/telluricPlanet/terrain/terrainSettings.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // Interface ayant vocation à remplacer toutes les interfaces de paramétrisation du terrain export interface TerrainSettings { diff --git a/src/ts/planets/telluricPlanet/terrain/workers/buildScript.ts b/src/ts/planets/telluricPlanet/terrain/workers/buildScript.ts index aafdd314d..788c3d4cc 100644 --- a/src/ts/planets/telluricPlanet/terrain/workers/buildScript.ts +++ b/src/ts/planets/telluricPlanet/terrain/workers/buildScript.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { TransferBuildData } from "../chunks/workerDataTypes"; import { build_chunk_vertex_data, BuildData, TerrainSettings } from "terrain-generation"; import { ReturnedChunkData } from "../chunks/taskTypes"; diff --git a/src/ts/playground.ts b/src/ts/playground.ts index b12da8753..2b7f3a95a 100644 --- a/src/ts/playground.ts +++ b/src/ts/playground.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import "../styles/index.scss"; import { Assets } from "./assets"; diff --git a/src/ts/postProcesses/atmosphericScatteringPostProcess.ts b/src/ts/postProcesses/atmosphericScatteringPostProcess.ts index 5e5a1634f..683661ae8 100644 --- a/src/ts/postProcesses/atmosphericScatteringPostProcess.ts +++ b/src/ts/postProcesses/atmosphericScatteringPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import atmosphericScatteringFragment from "../../shaders/atmosphericScatteringFragment.glsl"; import { Effect } from "@babylonjs/core/Materials/effect"; diff --git a/src/ts/postProcesses/blackHolePostProcess.ts b/src/ts/postProcesses/blackHolePostProcess.ts index 54b28f746..566e9e213 100644 --- a/src/ts/postProcesses/blackHolePostProcess.ts +++ b/src/ts/postProcesses/blackHolePostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import blackHoleFragment from "../../shaders/blackhole.glsl"; import { UberScene } from "../uberCore/uberScene"; import { getActiveCameraUniforms, getObjectUniforms, getSamplers } from "./uniforms"; diff --git a/src/ts/postProcesses/clouds/cloudsUniforms.ts b/src/ts/postProcesses/clouds/cloudsUniforms.ts index 80d3d6233..d78ac331a 100644 --- a/src/ts/postProcesses/clouds/cloudsUniforms.ts +++ b/src/ts/postProcesses/clouds/cloudsUniforms.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Color3 } from "@babylonjs/core/Maths/math.color"; import { ProceduralTexture } from "@babylonjs/core/Materials/Textures/Procedurals/proceduralTexture"; import { SamplerEnumType, ShaderSamplers, ShaderUniforms, UniformEnumType } from "../../uberCore/postProcesses/types"; diff --git a/src/ts/postProcesses/clouds/flatCloudsPostProcess.ts b/src/ts/postProcesses/clouds/flatCloudsPostProcess.ts index 6db77d50d..4843d1c43 100644 --- a/src/ts/postProcesses/clouds/flatCloudsPostProcess.ts +++ b/src/ts/postProcesses/clouds/flatCloudsPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Effect } from "@babylonjs/core/Materials/effect"; import flatCloudsFragment from "../../../shaders/flatCloudsFragment.glsl"; diff --git a/src/ts/postProcesses/lensFlarePostProcess.ts b/src/ts/postProcesses/lensFlarePostProcess.ts index b6fa86f9d..538192dab 100644 --- a/src/ts/postProcesses/lensFlarePostProcess.ts +++ b/src/ts/postProcesses/lensFlarePostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import lensFlareFragment from "../../shaders/lensflare.glsl"; import { UberScene } from "../uberCore/uberScene"; import { getActiveCameraUniforms, getObjectUniforms, getSamplers } from "./uniforms"; diff --git a/src/ts/postProcesses/mandelbulbPostProcess.ts b/src/ts/postProcesses/mandelbulbPostProcess.ts index a046449c1..487fe73e4 100644 --- a/src/ts/postProcesses/mandelbulbPostProcess.ts +++ b/src/ts/postProcesses/mandelbulbPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import mandelbulbFragment from "../../shaders/mandelbulb.glsl"; import { UberScene } from "../uberCore/uberScene"; import { getActiveCameraUniforms, getObjectUniforms, getSamplers, getStellarObjectsUniforms } from "./uniforms"; diff --git a/src/ts/postProcesses/matterJetPostProcess.ts b/src/ts/postProcesses/matterJetPostProcess.ts index 218eda0bb..8798acf81 100644 --- a/src/ts/postProcesses/matterJetPostProcess.ts +++ b/src/ts/postProcesses/matterJetPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import matterJetFragment from "../../shaders/matterjet.glsl"; import { UberScene } from "../uberCore/uberScene"; import { getActiveCameraUniforms, getObjectUniforms, getSamplers } from "./uniforms"; diff --git a/src/ts/postProcesses/objectPostProcess.ts b/src/ts/postProcesses/objectPostProcess.ts index 3fe98d27f..794042828 100644 --- a/src/ts/postProcesses/objectPostProcess.ts +++ b/src/ts/postProcesses/objectPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { PostProcess } from "@babylonjs/core/PostProcesses/postProcess"; import { Transformable } from "../architecture/transformable"; diff --git a/src/ts/postProcesses/oceanPostProcess.ts b/src/ts/postProcesses/oceanPostProcess.ts index f76daaf2e..9ed130d3b 100644 --- a/src/ts/postProcesses/oceanPostProcess.ts +++ b/src/ts/postProcesses/oceanPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Effect } from "@babylonjs/core/Materials/effect"; import oceanFragment from "../../shaders/oceanFragment.glsl"; diff --git a/src/ts/postProcesses/postProcessManager.ts b/src/ts/postProcesses/postProcessManager.ts index f7ccf51b4..88816ed8f 100644 --- a/src/ts/postProcesses/postProcessManager.ts +++ b/src/ts/postProcesses/postProcessManager.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { UberScene } from "../uberCore/uberScene"; import { UberRenderingPipeline } from "../uberCore/uberRenderingPipeline"; import { OceanPostProcess } from "./oceanPostProcess"; diff --git a/src/ts/postProcesses/postProcessTypes.ts b/src/ts/postProcesses/postProcessTypes.ts index f95782e5b..039862ea2 100644 --- a/src/ts/postProcesses/postProcessTypes.ts +++ b/src/ts/postProcesses/postProcessTypes.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + export enum PostProcessType { VOLUMETRIC_LIGHT, OCEAN, diff --git a/src/ts/postProcesses/rings/ringsPostProcess.ts b/src/ts/postProcesses/rings/ringsPostProcess.ts index a8036979c..ca082efcf 100644 --- a/src/ts/postProcesses/rings/ringsPostProcess.ts +++ b/src/ts/postProcesses/rings/ringsPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import ringsFragment from "../../../shaders/ringsFragment.glsl"; import { UberScene } from "../../uberCore/uberScene"; import { UberPostProcess } from "../../uberCore/postProcesses/uberPostProcess"; diff --git a/src/ts/postProcesses/rings/ringsUniform.ts b/src/ts/postProcesses/rings/ringsUniform.ts index 13b9cd4fb..439671519 100644 --- a/src/ts/postProcesses/rings/ringsUniform.ts +++ b/src/ts/postProcesses/rings/ringsUniform.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Color3 } from "@babylonjs/core/Maths/math.color"; import { normalRandom, randRange } from "extended-random"; import { clamp } from "terrain-generation"; diff --git a/src/ts/postProcesses/shadowPostProcess.ts b/src/ts/postProcesses/shadowPostProcess.ts index af9460efa..cac2b471e 100644 --- a/src/ts/postProcesses/shadowPostProcess.ts +++ b/src/ts/postProcesses/shadowPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import shadowFragment from "../../shaders/shadowFragment.glsl"; import { UberScene } from "../uberCore/uberScene"; import { UberPostProcess } from "../uberCore/postProcesses/uberPostProcess"; diff --git a/src/ts/postProcesses/starfieldPostProcess.ts b/src/ts/postProcesses/starfieldPostProcess.ts index d96567d50..8e5ffbb30 100644 --- a/src/ts/postProcesses/starfieldPostProcess.ts +++ b/src/ts/postProcesses/starfieldPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import starfieldFragment from "../../shaders/starfieldFragment.glsl"; import { TelluricPlanet } from "../planets/telluricPlanet/telluricPlanet"; import { UberScene } from "../uberCore/uberScene"; diff --git a/src/ts/postProcesses/uniforms.ts b/src/ts/postProcesses/uniforms.ts index 710365223..510cbccfa 100644 --- a/src/ts/postProcesses/uniforms.ts +++ b/src/ts/postProcesses/uniforms.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { UberScene } from "../uberCore/uberScene"; import { SamplerEnumType, ShaderSamplers, ShaderUniforms, UniformEnumType } from "../uberCore/postProcesses/types"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; diff --git a/src/ts/postProcesses/volumetricCloudsPostProcess.ts b/src/ts/postProcesses/volumetricCloudsPostProcess.ts index d541ebebb..7a79e3fdc 100644 --- a/src/ts/postProcesses/volumetricCloudsPostProcess.ts +++ b/src/ts/postProcesses/volumetricCloudsPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import volumetricCloudsFragment from "../../shaders/volumetricCloudsFragment.glsl"; import { UberScene } from "../uberCore/uberScene"; import { getActiveCameraUniforms, getObjectUniforms, getSamplers, getStellarObjectsUniforms } from "./uniforms"; diff --git a/src/ts/postProcesses/volumetricLight.ts b/src/ts/postProcesses/volumetricLight.ts index 51d5358e6..d183f8792 100644 --- a/src/ts/postProcesses/volumetricLight.ts +++ b/src/ts/postProcesses/volumetricLight.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { VolumetricLightScatteringPostProcess } from "@babylonjs/core/PostProcesses/volumetricLightScatteringPostProcess"; import { UberScene } from "../uberCore/uberScene"; import { Texture } from "@babylonjs/core/Materials/Textures/texture"; diff --git a/src/ts/proceduralAssets/butterfly/butterfly.ts b/src/ts/proceduralAssets/butterfly/butterfly.ts index 765861f58..ab2b63802 100644 --- a/src/ts/proceduralAssets/butterfly/butterfly.ts +++ b/src/ts/proceduralAssets/butterfly/butterfly.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { VertexData } from "@babylonjs/core/Meshes/mesh.vertexData"; import { Mesh } from "@babylonjs/core/Meshes/mesh"; import { Scene } from "@babylonjs/core/scene"; diff --git a/src/ts/proceduralAssets/butterfly/butterflyMaterial.ts b/src/ts/proceduralAssets/butterfly/butterflyMaterial.ts index 35b99e030..ff8a5126f 100644 --- a/src/ts/proceduralAssets/butterfly/butterflyMaterial.ts +++ b/src/ts/proceduralAssets/butterfly/butterflyMaterial.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Scene } from "@babylonjs/core/scene"; import { Effect } from "@babylonjs/core/Materials/effect"; import { ShaderMaterial } from "@babylonjs/core/Materials/shaderMaterial"; diff --git a/src/ts/proceduralAssets/grass/grassBlade.ts b/src/ts/proceduralAssets/grass/grassBlade.ts index 694e4b29b..7fb9e2c3c 100644 --- a/src/ts/proceduralAssets/grass/grassBlade.ts +++ b/src/ts/proceduralAssets/grass/grassBlade.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Mesh } from "@babylonjs/core/Meshes/mesh"; import { VertexData } from "@babylonjs/core/Meshes/mesh.vertexData"; import { Scene } from "@babylonjs/core/scene"; diff --git a/src/ts/proceduralAssets/grass/grassMaterial.ts b/src/ts/proceduralAssets/grass/grassMaterial.ts index a4c6c3ed2..2a4c85120 100644 --- a/src/ts/proceduralAssets/grass/grassMaterial.ts +++ b/src/ts/proceduralAssets/grass/grassMaterial.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Effect } from "@babylonjs/core/Materials/effect"; import { ShaderMaterial } from "@babylonjs/core/Materials/shaderMaterial"; import { Scene } from "@babylonjs/core/scene"; diff --git a/src/ts/randomizer.ts b/src/ts/randomizer.ts index a580739c0..85fdf699a 100644 --- a/src/ts/randomizer.ts +++ b/src/ts/randomizer.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import "../styles/index.scss"; import { StarSystemController } from "./starSystem/starSystemController"; diff --git a/src/ts/settings.ts b/src/ts/settings.ts index 217b679e2..acc06e82c 100644 --- a/src/ts/settings.ts +++ b/src/ts/settings.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { seededSquirrelNoise } from "squirrel-noise"; import { makeNoise3D } from "fast-simplex-noise"; diff --git a/src/ts/spacelegs/characterControls.ts b/src/ts/spacelegs/characterControls.ts index 6719cc5ad..27e5075c6 100644 --- a/src/ts/spacelegs/characterControls.ts +++ b/src/ts/spacelegs/characterControls.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Controls } from "../uberCore/controls"; import { TransformNode } from "@babylonjs/core/Meshes"; import { Scene } from "@babylonjs/core/scene"; diff --git a/src/ts/spaceship/abstractThruster.ts b/src/ts/spaceship/abstractThruster.ts index 8e4c902c9..a4a67a4ab 100644 --- a/src/ts/spaceship/abstractThruster.ts +++ b/src/ts/spaceship/abstractThruster.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { StandardMaterial } from "@babylonjs/core/Materials/standardMaterial"; import { Vector3 } from "@babylonjs/core/Maths/math"; import { Color3 } from "@babylonjs/core/Maths/math.color"; diff --git a/src/ts/spaceship/mainThruster.ts b/src/ts/spaceship/mainThruster.ts index f29ae8c5e..a3be11f57 100644 --- a/src/ts/spaceship/mainThruster.ts +++ b/src/ts/spaceship/mainThruster.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math"; import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh"; import { AbstractThruster } from "./abstractThruster"; diff --git a/src/ts/spaceship/rcsThruster.ts b/src/ts/spaceship/rcsThruster.ts index ccffe8198..52ad44db7 100644 --- a/src/ts/spaceship/rcsThruster.ts +++ b/src/ts/spaceship/rcsThruster.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh"; import { AbstractThruster } from "./abstractThruster"; diff --git a/src/ts/spaceship/shipControls.ts b/src/ts/spaceship/shipControls.ts index dbd4d89d9..0d1139980 100644 --- a/src/ts/spaceship/shipControls.ts +++ b/src/ts/spaceship/shipControls.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Scene } from "@babylonjs/core/scene"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh"; diff --git a/src/ts/spaceship/warpDrive.ts b/src/ts/spaceship/warpDrive.ts index 6f674cdfc..dc7fdcd95 100644 --- a/src/ts/spaceship/warpDrive.ts +++ b/src/ts/spaceship/warpDrive.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Settings } from "../settings"; import { clamp } from "../utils/math"; diff --git a/src/ts/spaceshipExtended/spaceship.ts b/src/ts/spaceshipExtended/spaceship.ts index 64801cc39..2cb1df35b 100644 --- a/src/ts/spaceshipExtended/spaceship.ts +++ b/src/ts/spaceshipExtended/spaceship.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { AbstractMesh, InstancedMesh, Mesh, MeshBuilder } from "@babylonjs/core/Meshes"; import { Assets } from "../assets"; import { PhysicsAggregate } from "@babylonjs/core/Physics/v2/physicsAggregate"; diff --git a/src/ts/spaceshipExtended/thruster.ts b/src/ts/spaceshipExtended/thruster.ts index 52b0ecd85..d8ec29f7e 100644 --- a/src/ts/spaceshipExtended/thruster.ts +++ b/src/ts/spaceshipExtended/thruster.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Quaternion, Vector3 } from "@babylonjs/core/Maths/math"; import { Mesh, TransformNode } from "@babylonjs/core/Meshes"; import { PhysicsAggregate } from "@babylonjs/core/Physics/v2/physicsAggregate"; diff --git a/src/ts/spaceshipExtended/thrusterMatrix.ts b/src/ts/spaceshipExtended/thrusterMatrix.ts index e17f1ab01..adb31dfa8 100644 --- a/src/ts/spaceshipExtended/thrusterMatrix.ts +++ b/src/ts/spaceshipExtended/thrusterMatrix.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Matrix } from "ml-matrix"; import { Thruster } from "./thruster"; import { Vector3 } from "@babylonjs/core/Maths/math"; diff --git a/src/ts/spacestation/spaceStation.ts b/src/ts/spacestation/spaceStation.ts index fcae7a06d..31727e654 100644 --- a/src/ts/spacestation/spaceStation.ts +++ b/src/ts/spacestation/spaceStation.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { InstancedMesh } from "@babylonjs/core/Meshes/instancedMesh"; import { Scene } from "@babylonjs/core/scene"; import { isSizeOnScreenEnough } from "../utils/isObjectVisibleOnScreen"; diff --git a/src/ts/spacestation/spacestationModel.ts b/src/ts/spacestation/spacestationModel.ts index b7a150560..059c29c43 100644 --- a/src/ts/spacestation/spacestationModel.ts +++ b/src/ts/spacestation/spacestationModel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { seededSquirrelNoise } from "squirrel-noise"; import { Settings } from "../settings"; import { GENERATION_STEPS } from "../model/common"; diff --git a/src/ts/starSystem/StarSystemView.ts b/src/ts/starSystem/StarSystemView.ts index ce9083f46..9e3770a90 100644 --- a/src/ts/starSystem/StarSystemView.ts +++ b/src/ts/starSystem/StarSystemView.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { HelmetOverlay } from "../ui/helmetOverlay"; import { BodyEditor, EditorVisibility } from "../ui/bodyEditor/bodyEditor"; import { UberScene } from "../uberCore/uberScene"; diff --git a/src/ts/starSystem/starSystemController.ts b/src/ts/starSystem/starSystemController.ts index a52f02136..7f81d446a 100644 --- a/src/ts/starSystem/starSystemController.ts +++ b/src/ts/starSystem/starSystemController.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { Matrix, Quaternion } from "@babylonjs/core/Maths/math"; diff --git a/src/ts/starSystem/starSystemHelper.ts b/src/ts/starSystem/starSystemHelper.ts index 5d7f4803f..b353507e4 100644 --- a/src/ts/starSystem/starSystemHelper.ts +++ b/src/ts/starSystem/starSystemHelper.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { StarSystemController } from "./starSystemController"; import { StarModel } from "../stellarObjects/star/starModel"; import { Star } from "../stellarObjects/star/star"; diff --git a/src/ts/starSystem/starSystemModel.ts b/src/ts/starSystem/starSystemModel.ts index 37a5f8f8c..ad5d82662 100644 --- a/src/ts/starSystem/starSystemModel.ts +++ b/src/ts/starSystem/starSystemModel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { seededSquirrelNoise } from "squirrel-noise"; import { centeredRand, randRangeInt, uniformRandBool } from "extended-random"; import { Settings } from "../settings"; diff --git a/src/ts/starmap/starMap.ts b/src/ts/starmap/starMap.ts index 1585a7b4c..0a72512a4 100644 --- a/src/ts/starmap/starMap.ts +++ b/src/ts/starmap/starMap.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { DefaultControls } from "../defaultController/defaultControls"; import starTexture from "../../asset/textures/starParticle.png"; diff --git a/src/ts/starmap/starMapUI.ts b/src/ts/starmap/starMapUI.ts index 8a3222890..c70557e33 100644 --- a/src/ts/starmap/starMapUI.ts +++ b/src/ts/starmap/starMapUI.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh"; import { TextBlock } from "@babylonjs/gui/2D/controls/textBlock"; import { StackPanel } from "@babylonjs/gui/2D/controls/stackPanel"; diff --git a/src/ts/starmap/starSector.ts b/src/ts/starmap/starSector.ts index 7e6a07b28..fbdfe439b 100644 --- a/src/ts/starmap/starSector.ts +++ b/src/ts/starmap/starSector.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { hashVec3 } from "../utils/hashVec3"; import { seededSquirrelNoise } from "squirrel-noise"; import { centeredRand } from "extended-random"; diff --git a/src/ts/stellarObjects/blackHole/blackHole.ts b/src/ts/stellarObjects/blackHole/blackHole.ts index 6f73f348f..663285d0b 100644 --- a/src/ts/stellarObjects/blackHole/blackHole.ts +++ b/src/ts/stellarObjects/blackHole/blackHole.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Axis } from "@babylonjs/core/Maths/math.axis"; import { PointLight } from "@babylonjs/core/Lights/pointLight"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; diff --git a/src/ts/stellarObjects/blackHole/blackHoleModel.ts b/src/ts/stellarObjects/blackHole/blackHoleModel.ts index 7cbbbf82e..310a8e77b 100644 --- a/src/ts/stellarObjects/blackHole/blackHoleModel.ts +++ b/src/ts/stellarObjects/blackHole/blackHoleModel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { seededSquirrelNoise } from "squirrel-noise"; import { getOrbitalPeriod } from "../../orbit/orbit"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; diff --git a/src/ts/stellarObjects/common.ts b/src/ts/stellarObjects/common.ts index 6d6a3ac41..6edde025b 100644 --- a/src/ts/stellarObjects/common.ts +++ b/src/ts/stellarObjects/common.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + export enum STELLAR_TYPE { /** 30,000 - 50,000 K */ O, diff --git a/src/ts/stellarObjects/neutronStar/neutronStar.ts b/src/ts/stellarObjects/neutronStar/neutronStar.ts index edbcd45de..d58bac651 100644 --- a/src/ts/stellarObjects/neutronStar/neutronStar.ts +++ b/src/ts/stellarObjects/neutronStar/neutronStar.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Star } from "../star/star"; import { NeutronStarModel } from "./neutronStarModel"; import { UberScene } from "../../uberCore/uberScene"; diff --git a/src/ts/stellarObjects/neutronStar/neutronStarModel.ts b/src/ts/stellarObjects/neutronStar/neutronStarModel.ts index 7655af8b5..8e2a60342 100644 --- a/src/ts/stellarObjects/neutronStar/neutronStarModel.ts +++ b/src/ts/stellarObjects/neutronStar/neutronStarModel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { StarModel } from "../star/starModel"; import { CelestialBodyModel } from "../../architecture/celestialBody"; diff --git a/src/ts/stellarObjects/star/star.ts b/src/ts/stellarObjects/star/star.ts index 3a499fbce..32bcc17ca 100644 --- a/src/ts/stellarObjects/star/star.ts +++ b/src/ts/stellarObjects/star/star.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Mesh } from "@babylonjs/core/Meshes/mesh"; import { PointLight } from "@babylonjs/core/Lights/pointLight"; import { StarMaterial } from "./starMaterial"; diff --git a/src/ts/stellarObjects/star/starMaterial.ts b/src/ts/stellarObjects/star/starMaterial.ts index f265c5e4f..1fbc88924 100644 --- a/src/ts/stellarObjects/star/starMaterial.ts +++ b/src/ts/stellarObjects/star/starMaterial.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import starMaterialFragment from "../../../shaders/starMaterial/fragment.glsl"; import starMaterialVertex from "../../../shaders/starMaterial/vertex.glsl"; import { Effect } from "@babylonjs/core/Materials/effect"; diff --git a/src/ts/stellarObjects/star/starModel.ts b/src/ts/stellarObjects/star/starModel.ts index 261ee858e..9fe926308 100644 --- a/src/ts/stellarObjects/star/starModel.ts +++ b/src/ts/stellarObjects/star/starModel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { seededSquirrelNoise } from "squirrel-noise"; import { clamp } from "terrain-generation"; import { normalRandom, randRange, uniformRandBool } from "extended-random"; diff --git a/src/ts/stellarObjects/stellarObject.ts b/src/ts/stellarObjects/stellarObject.ts index 363421029..b2776e372 100644 --- a/src/ts/stellarObjects/stellarObject.ts +++ b/src/ts/stellarObjects/stellarObject.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Star } from "./star/star"; import { BlackHole } from "./blackHole/blackHole"; diff --git a/src/ts/uberCore/controls.ts b/src/ts/uberCore/controls.ts index 1a5d9f3c9..cd21924e1 100644 --- a/src/ts/uberCore/controls.ts +++ b/src/ts/uberCore/controls.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { Input } from "../inputs/input"; import { Camera } from "@babylonjs/core/Cameras/camera"; diff --git a/src/ts/uberCore/localDirections.ts b/src/ts/uberCore/localDirections.ts index 750e0f7c9..60a4e8105 100644 --- a/src/ts/uberCore/localDirections.ts +++ b/src/ts/uberCore/localDirections.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math.vector"; export class LOCAL_DIRECTION { diff --git a/src/ts/uberCore/postProcesses/colorCorrection.ts b/src/ts/uberCore/postProcesses/colorCorrection.ts index 3b4f4dc17..af8ec7849 100644 --- a/src/ts/uberCore/postProcesses/colorCorrection.ts +++ b/src/ts/uberCore/postProcesses/colorCorrection.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { PostProcess } from "@babylonjs/core/PostProcesses/postProcess"; import colorCorrectionFragment from "../../../shaders/colorCorrection.glsl"; import { Engine } from "@babylonjs/core/Engines/engine"; diff --git a/src/ts/uberCore/postProcesses/types.ts b/src/ts/uberCore/postProcesses/types.ts index fed636748..8000bbf84 100644 --- a/src/ts/uberCore/postProcesses/types.ts +++ b/src/ts/uberCore/postProcesses/types.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Matrix, Quaternion, Vector3, Vector4 } from "@babylonjs/core/Maths/math.vector"; import { Color3 } from "@babylonjs/core/Maths/math.color"; import { Texture } from "@babylonjs/core/Materials/Textures/texture"; diff --git a/src/ts/uberCore/postProcesses/uberPostProcess.ts b/src/ts/uberCore/postProcesses/uberPostProcess.ts index 58d8454da..066b0bd4d 100644 --- a/src/ts/uberCore/postProcesses/uberPostProcess.ts +++ b/src/ts/uberCore/postProcesses/uberPostProcess.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Matrix, Quaternion, Vector3, Vector4 } from "@babylonjs/core/Maths/math.vector"; import { flattenVector3Array, flattenVector4Array } from "../../utils/algebra"; import { Color3 } from "@babylonjs/core/Maths/math.color"; diff --git a/src/ts/uberCore/transforms/animations/interpolations.ts b/src/ts/uberCore/transforms/animations/interpolations.ts index d3d542e12..88f3baef2 100644 --- a/src/ts/uberCore/transforms/animations/interpolations.ts +++ b/src/ts/uberCore/transforms/animations/interpolations.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + export function easeInOutInterpolation(t: number): number { return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t; } diff --git a/src/ts/uberCore/transforms/animations/rotation.ts b/src/ts/uberCore/transforms/animations/rotation.ts index 3925fcb08..7569ee7cf 100644 --- a/src/ts/uberCore/transforms/animations/rotation.ts +++ b/src/ts/uberCore/transforms/animations/rotation.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { easeInOutInterpolation } from "./interpolations"; import { TransformNode } from "@babylonjs/core/Meshes"; diff --git a/src/ts/uberCore/transforms/animations/translation.ts b/src/ts/uberCore/transforms/animations/translation.ts index 6d71eb398..a5842e147 100644 --- a/src/ts/uberCore/transforms/animations/translation.ts +++ b/src/ts/uberCore/transforms/animations/translation.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { easeInOutInterpolation } from "./interpolations"; import { TransformNode } from "@babylonjs/core/Meshes"; diff --git a/src/ts/uberCore/transforms/basicTransform.ts b/src/ts/uberCore/transforms/basicTransform.ts index 32e7bb2bb..60238f0aa 100644 --- a/src/ts/uberCore/transforms/basicTransform.ts +++ b/src/ts/uberCore/transforms/basicTransform.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { TransformNode } from "@babylonjs/core/Meshes/transformNode"; import { Matrix, Quaternion, Vector3 } from "@babylonjs/core/Maths/math.vector"; import { Axis, Space } from "@babylonjs/core/Maths/math.axis"; diff --git a/src/ts/uberCore/uberRenderingPipeline.ts b/src/ts/uberCore/uberRenderingPipeline.ts index 876e617dc..c278f97c4 100644 --- a/src/ts/uberCore/uberRenderingPipeline.ts +++ b/src/ts/uberCore/uberRenderingPipeline.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Camera } from "@babylonjs/core/Cameras/camera"; import { Engine } from "@babylonjs/core/Engines/engine"; import { PostProcessRenderPipeline } from "@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipeline"; diff --git a/src/ts/uberCore/uberScene.ts b/src/ts/uberCore/uberScene.ts index 840e19873..319ac7f33 100644 --- a/src/ts/uberCore/uberScene.ts +++ b/src/ts/uberCore/uberScene.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Scene, ScenePerformancePriority } from "@babylonjs/core/scene"; import { Controls } from "./controls"; import { DepthRenderer } from "@babylonjs/core/Rendering/depthRenderer"; diff --git a/src/ts/ui/bodyEditor/bodyEditor.ts b/src/ts/ui/bodyEditor/bodyEditor.ts index 5b17149d5..1f59ab039 100644 --- a/src/ts/ui/bodyEditor/bodyEditor.ts +++ b/src/ts/ui/bodyEditor/bodyEditor.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import editorHTML from "../../../html/bodyEditor.html"; import { TelluricPlanet } from "../../planets/telluricPlanet/telluricPlanet"; import "handle-sliderjs/dist/css/style2.css"; diff --git a/src/ts/ui/bodyEditor/editorPanel.ts b/src/ts/ui/bodyEditor/editorPanel.ts index 537ca7054..4fa720fb9 100644 --- a/src/ts/ui/bodyEditor/editorPanel.ts +++ b/src/ts/ui/bodyEditor/editorPanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Slider } from "handle-sliderjs"; import { UberScene } from "../../uberCore/uberScene"; import { PostProcess } from "@babylonjs/core/PostProcesses/postProcess"; diff --git a/src/ts/ui/bodyEditor/panels/atmospherePanel.ts b/src/ts/ui/bodyEditor/panels/atmospherePanel.ts index 1f7892893..50780a017 100644 --- a/src/ts/ui/bodyEditor/panels/atmospherePanel.ts +++ b/src/ts/ui/bodyEditor/panels/atmospherePanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { EditorPanel } from "../editorPanel"; import { clearAllEventListenersById } from "../../../utils/html"; import { Settings } from "../../../settings"; diff --git a/src/ts/ui/bodyEditor/panels/blackholePanel.ts b/src/ts/ui/bodyEditor/panels/blackholePanel.ts index 6d9835c5a..b21558d35 100644 --- a/src/ts/ui/bodyEditor/panels/blackholePanel.ts +++ b/src/ts/ui/bodyEditor/panels/blackholePanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { EditorPanel } from "../editorPanel"; import { Slider } from "handle-sliderjs"; import { BlackHolePostProcess } from "../../../postProcesses/blackHolePostProcess"; diff --git a/src/ts/ui/bodyEditor/panels/cloudsPanel.ts b/src/ts/ui/bodyEditor/panels/cloudsPanel.ts index 97b9af756..1e8de8063 100644 --- a/src/ts/ui/bodyEditor/panels/cloudsPanel.ts +++ b/src/ts/ui/bodyEditor/panels/cloudsPanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { EditorPanel } from "../editorPanel"; import { clearAllEventListenersById } from "../../../utils/html"; import { Settings } from "../../../settings"; diff --git a/src/ts/ui/bodyEditor/panels/gasCloudsPanel.ts b/src/ts/ui/bodyEditor/panels/gasCloudsPanel.ts index a039ee93b..df4705e6c 100644 --- a/src/ts/ui/bodyEditor/panels/gasCloudsPanel.ts +++ b/src/ts/ui/bodyEditor/panels/gasCloudsPanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { EditorPanel } from "../editorPanel"; import { GasPlanet } from "../../../planets/gasPlanet/gasPlanet"; import { clearAllEventListenersById } from "../../../utils/html"; diff --git a/src/ts/ui/bodyEditor/panels/generalPanel.ts b/src/ts/ui/bodyEditor/panels/generalPanel.ts index 24c428dcc..e9f75a445 100644 --- a/src/ts/ui/bodyEditor/panels/generalPanel.ts +++ b/src/ts/ui/bodyEditor/panels/generalPanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { EditorPanel } from "../editorPanel"; import { stripAxisFromQuaternion } from "../../../utils/algebra"; import { Axis } from "@babylonjs/core/Maths/math.axis"; diff --git a/src/ts/ui/bodyEditor/panels/oceanPanel.ts b/src/ts/ui/bodyEditor/panels/oceanPanel.ts index d443cda53..2b386c1ac 100644 --- a/src/ts/ui/bodyEditor/panels/oceanPanel.ts +++ b/src/ts/ui/bodyEditor/panels/oceanPanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { EditorPanel } from "../editorPanel"; import { clearAllEventListenersById } from "../../../utils/html"; import { Slider } from "handle-sliderjs"; diff --git a/src/ts/ui/bodyEditor/panels/physicPanel.ts b/src/ts/ui/bodyEditor/panels/physicPanel.ts index 83a641ea2..38fc003a5 100644 --- a/src/ts/ui/bodyEditor/panels/physicPanel.ts +++ b/src/ts/ui/bodyEditor/panels/physicPanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { EditorPanel } from "../editorPanel"; import { Slider } from "handle-sliderjs"; import { TelluricPlanet } from "../../../planets/telluricPlanet/telluricPlanet"; diff --git a/src/ts/ui/bodyEditor/panels/ringsPanel.ts b/src/ts/ui/bodyEditor/panels/ringsPanel.ts index f6048707e..9697e2815 100644 --- a/src/ts/ui/bodyEditor/panels/ringsPanel.ts +++ b/src/ts/ui/bodyEditor/panels/ringsPanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { EditorPanel } from "../editorPanel"; import { clearAllEventListenersById } from "../../../utils/html"; import { Slider } from "handle-sliderjs"; diff --git a/src/ts/ui/bodyEditor/panels/starPanel.ts b/src/ts/ui/bodyEditor/panels/starPanel.ts index d93d9b267..f8f9d7f0a 100644 --- a/src/ts/ui/bodyEditor/panels/starPanel.ts +++ b/src/ts/ui/bodyEditor/panels/starPanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { EditorPanel } from "../editorPanel"; import { Slider } from "handle-sliderjs"; import { VolumetricLight } from "../../../postProcesses/volumetricLight"; diff --git a/src/ts/ui/bodyEditor/panels/surfacePanel.ts b/src/ts/ui/bodyEditor/panels/surfacePanel.ts index 0de91291b..cb5be695b 100644 --- a/src/ts/ui/bodyEditor/panels/surfacePanel.ts +++ b/src/ts/ui/bodyEditor/panels/surfacePanel.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { EditorPanel } from "../editorPanel"; import { TelluricPlanet } from "../../../planets/telluricPlanet/telluricPlanet"; import { clearAllEventListenersById } from "../../../utils/html"; diff --git a/src/ts/ui/helmetOverlay.ts b/src/ts/ui/helmetOverlay.ts index 92ad0ea06..f265ecf70 100644 --- a/src/ts/ui/helmetOverlay.ts +++ b/src/ts/ui/helmetOverlay.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import overlayHTML from "../../html/helmetOverlay.html"; import { OrbitalObject } from "../architecture/orbitalObject"; diff --git a/src/ts/ui/objectOverlay.ts b/src/ts/ui/objectOverlay.ts index dad3889b7..387620476 100644 --- a/src/ts/ui/objectOverlay.ts +++ b/src/ts/ui/objectOverlay.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { TextBlock } from "@babylonjs/gui/2D/controls/textBlock"; import { StackPanel } from "@babylonjs/gui/2D/controls/stackPanel"; import { Image } from "@babylonjs/gui/2D/controls/image"; diff --git a/src/ts/ui/pauseMenu.ts b/src/ts/ui/pauseMenu.ts index 058e18468..9afad9668 100644 --- a/src/ts/ui/pauseMenu.ts +++ b/src/ts/ui/pauseMenu.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Observable } from "@babylonjs/core/Misc/observable"; import pauseMenuHTML from "../../html/pauseMenu.html"; diff --git a/src/ts/ui/systemUI.ts b/src/ts/ui/systemUI.ts index 540c359da..dccd10db4 100644 --- a/src/ts/ui/systemUI.ts +++ b/src/ts/ui/systemUI.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Scene } from "@babylonjs/core/scene"; import { AdvancedDynamicTexture } from "@babylonjs/gui/2D/advancedDynamicTexture"; import { ObjectOverlay } from "./objectOverlay"; diff --git a/src/ts/utils/algebra.ts b/src/ts/utils/algebra.ts index 3b1ce827c..0595e6a9e 100644 --- a/src/ts/utils/algebra.ts +++ b/src/ts/utils/algebra.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Quaternion, Vector3, Vector4 } from "@babylonjs/core/Maths/math.vector"; /** diff --git a/src/ts/utils/chunkUtils.ts b/src/ts/utils/chunkUtils.ts index 1e762f5cb..0b80e8f50 100644 --- a/src/ts/utils/chunkUtils.ts +++ b/src/ts/utils/chunkUtils.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Quaternion, Vector3 } from "@babylonjs/core/Maths/math.vector"; import { Direction, getQuaternionFromDirection } from "./direction"; diff --git a/src/ts/utils/direction.ts b/src/ts/utils/direction.ts index bc36e5f51..f82d91d97 100644 --- a/src/ts/utils/direction.ts +++ b/src/ts/utils/direction.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Axis } from "@babylonjs/core/Maths/math.axis"; import { Quaternion } from "@babylonjs/core/Maths/math.vector"; diff --git a/src/ts/utils/extractRelevantPostProcesses.ts b/src/ts/utils/extractRelevantPostProcesses.ts index 3f3501f11..af280c523 100644 --- a/src/ts/utils/extractRelevantPostProcesses.ts +++ b/src/ts/utils/extractRelevantPostProcesses.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Engine } from "@babylonjs/core/Engines/engine"; import { ObjectPostProcess } from "../postProcesses/objectPostProcess"; import { PostProcessRenderEffect } from "@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderEffect"; diff --git a/src/ts/utils/hashVec3.ts b/src/ts/utils/hashVec3.ts index cdfdae3a8..fff1db89f 100644 --- a/src/ts/utils/hashVec3.ts +++ b/src/ts/utils/hashVec3.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math.vector"; export function hashVec3(v: Vector3): number { diff --git a/src/ts/utils/havok.ts b/src/ts/utils/havok.ts index 0f265bfc0..685fa1803 100644 --- a/src/ts/utils/havok.ts +++ b/src/ts/utils/havok.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { HavokPlugin } from "@babylonjs/core/Physics/v2/Plugins/havokPlugin"; import { PhysicsBody } from "@babylonjs/core/Physics/v2/physicsBody"; diff --git a/src/ts/utils/html.ts b/src/ts/utils/html.ts index 2d3d8d3f2..72b6a3eb0 100644 --- a/src/ts/utils/html.ts +++ b/src/ts/utils/html.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + export function clearAllEventListenersById(id: string): HTMLElement { const oldElement = document.getElementById(id); if (oldElement === null) throw new Error(`Could not find #${id} in document`); diff --git a/src/ts/utils/isObjectVisibleOnScreen.ts b/src/ts/utils/isObjectVisibleOnScreen.ts index 09b4c6ce0..4b5d53cde 100644 --- a/src/ts/utils/isObjectVisibleOnScreen.ts +++ b/src/ts/utils/isObjectVisibleOnScreen.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math"; import { Camera } from "@babylonjs/core/Cameras/camera"; import { BoundingSphere } from "../architecture/boundingSphere"; diff --git a/src/ts/utils/math.ts b/src/ts/utils/math.ts index 2356fb31d..5fe0f3cea 100644 --- a/src/ts/utils/math.ts +++ b/src/ts/utils/math.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + export function clamp(value: number, min: number, max: number) { return Math.min(Math.max(value, min), max); } diff --git a/src/ts/utils/moveTowards.ts b/src/ts/utils/moveTowards.ts index cefa1ec70..e41c3860b 100644 --- a/src/ts/utils/moveTowards.ts +++ b/src/ts/utils/moveTowards.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + export function moveTowards(x: number, target: number, rate: number): number { if (x > target) { return Math.max(target, x - rate); diff --git a/src/ts/utils/nameGenerator.ts b/src/ts/utils/nameGenerator.ts index 14b1b2d7c..06ce70544 100644 --- a/src/ts/utils/nameGenerator.ts +++ b/src/ts/utils/nameGenerator.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + const constellationNames: string[] = [ "Andromeda", "Antlia", diff --git a/src/ts/utils/nearestBody.ts b/src/ts/utils/nearestBody.ts index 5ed4b6d69..f5fc5ad1e 100644 --- a/src/ts/utils/nearestBody.ts +++ b/src/ts/utils/nearestBody.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { BoundingSphere } from "../architecture/boundingSphere"; import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { CelestialBody } from "../architecture/celestialBody"; diff --git a/src/ts/utils/occlusion.ts b/src/ts/utils/occlusion.ts index 06558281c..d1ce19f31 100644 --- a/src/ts/utils/occlusion.ts +++ b/src/ts/utils/occlusion.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math.vector"; export function rayIntersectSphere(rayOrigin: Vector3, rayDir: Vector3, spherePosition: Vector3, sphereRadius: number): [boolean, number, number] { diff --git a/src/ts/utils/parseToStrings.ts b/src/ts/utils/parseToStrings.ts index bad775bd9..8b82d58d9 100644 --- a/src/ts/utils/parseToStrings.ts +++ b/src/ts/utils/parseToStrings.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Settings } from "../settings"; export function parseSpeed(speed: number): string { diff --git a/src/ts/utils/particleSystem.ts b/src/ts/utils/particleSystem.ts index c290a9513..e6d56185c 100644 --- a/src/ts/utils/particleSystem.ts +++ b/src/ts/utils/particleSystem.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Axis, Vector3 } from "@babylonjs/core/Maths/math"; import { Color4 } from "@babylonjs/core/Maths/math.color"; import { AbstractMesh } from "@babylonjs/core/Meshes/abstractMesh"; diff --git a/src/ts/utils/positionNearObject.ts b/src/ts/utils/positionNearObject.ts index 3ddf90d8e..4f630bd89 100644 --- a/src/ts/utils/positionNearObject.ts +++ b/src/ts/utils/positionNearObject.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { StarSystemController } from "../starSystem/starSystemController"; import { nearestBody } from "./nearestBody"; diff --git a/src/ts/utils/specrend.ts b/src/ts/utils/specrend.ts index bdeed4772..0b5c22e42 100644 --- a/src/ts/utils/specrend.ts +++ b/src/ts/utils/specrend.ts @@ -1,4 +1,3 @@ -/**Translated to Typescript by Barthélemy Paléologue */ /* Colour Rendering of Spectra @@ -34,6 +33,8 @@ */ +// Translated to Typescript by Barthélemy Paléologue + /* A colour system is defined by the CIE x and y coordinates of its three primary illuminants and the x and y coordinates of the white point. */ diff --git a/src/ts/utils/systemSeed.ts b/src/ts/utils/systemSeed.ts index b5db9e924..f77b90755 100644 --- a/src/ts/utils/systemSeed.ts +++ b/src/ts/utils/systemSeed.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Vector3 } from "@babylonjs/core/Maths/math.vector"; import { seededSquirrelNoise } from "squirrel-noise"; import { hashVec3 } from "./hashVec3"; diff --git a/src/ts/utils/temperatureComputation.ts b/src/ts/utils/temperatureComputation.ts index f04c968fc..ec8091e06 100644 --- a/src/ts/utils/temperatureComputation.ts +++ b/src/ts/utils/temperatureComputation.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + /** * Computes the mean temperature of a planet given the properties of its star and itself * @param starTemperature The temperature of the star diff --git a/src/ts/utils/thickLines.ts b/src/ts/utils/thickLines.ts index 53414d687..88f1f21ad 100644 --- a/src/ts/utils/thickLines.ts +++ b/src/ts/utils/thickLines.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { StandardMaterial } from "@babylonjs/core/Materials/standardMaterial"; import { Color3 } from "@babylonjs/core/Maths/math.color"; import { CreateCylinder, Mesh, TransformNode } from "@babylonjs/core/Meshes"; diff --git a/src/ts/utils/waterMechanics.ts b/src/ts/utils/waterMechanics.ts index 391a22e00..a2fe8c0ad 100644 --- a/src/ts/utils/waterMechanics.ts +++ b/src/ts/utils/waterMechanics.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + // https://www.omnicalculator.com/chemistry/boiling-point // https://www.wikiwand.com/en/Boiling_point#/Saturation_temperature_and_pressure // https://www.desmos.com/calculator/ctxerbh48s diff --git a/src/ts/utils/wrappers.ts b/src/ts/utils/wrappers.ts index 2225cd11c..474b3153c 100644 --- a/src/ts/utils/wrappers.ts +++ b/src/ts/utils/wrappers.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { TransformNode } from "@babylonjs/core/Meshes"; import { Quaternion } from "@babylonjs/core/Maths/math"; import { DirectionalLight } from "@babylonjs/core/Lights/directionalLight"; diff --git a/src/ts/xr.ts b/src/ts/xr.ts index 3e08010b0..8965bc9bc 100644 --- a/src/ts/xr.ts +++ b/src/ts/xr.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import "../styles/index.scss"; import { Assets } from "./assets"; diff --git a/tests/unit/algebra.test.ts b/tests/unit/algebra.test.ts index 9a0dc9e76..c69012571 100644 --- a/tests/unit/algebra.test.ts +++ b/tests/unit/algebra.test.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Scene } from "@babylonjs/core/scene"; import { Vector3 } from "@babylonjs/core/Maths/math"; import { NullEngine } from "@babylonjs/core/Engines/nullEngine"; diff --git a/tests/unit/basicTransform.test.ts b/tests/unit/basicTransform.test.ts index 1b503146b..855355785 100644 --- a/tests/unit/basicTransform.test.ts +++ b/tests/unit/basicTransform.test.ts @@ -1,3 +1,20 @@ +// This file is part of CosmosJourneyer +// +// Copyright (C) 2024 Barthélemy Paléologue +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + import { Scene } from "@babylonjs/core/scene"; import { Vector3 } from "@babylonjs/core/Maths/math"; import { NullEngine } from "@babylonjs/core/Engines/nullEngine";