From 55be6554fa9b216405032b1606b624e9b1883b5d Mon Sep 17 00:00:00 2001 From: "gabriel.ku" Date: Tue, 10 Dec 2024 14:40:16 +0100 Subject: [PATCH 1/3] Amending repository files with REUSE Specification updates --- LICENSES/Apache-2.0.txt | 73 +++++++++++++++++++ LICENSES/MIT.txt | 9 +++ blender/cheetah_cone.blend.license | 3 + crates/example-culling/Cargo.toml | 4 + crates/example-wasm/Cargo.toml | 4 + crates/example-wasm/index.html | 6 ++ crates/example/Cargo.toml | 4 + crates/img-diff/Cargo.toml | 4 + crates/loading-bytes/Cargo.toml | 4 + crates/loading-bytes/README.md | 6 ++ crates/renderling-ui/Cargo.toml | 4 + crates/renderling-ui/README.md | 6 ++ crates/renderling/Cargo.toml | 4 + crates/renderling/aoeu-clip-plot.png.license | 3 + .../forward_cube_directional.png.license | 3 + crates/sandbox/Cargo.toml | 4 + ...ont Awesome 6 Free-Regular-400.otf.license | 3 + ... Lnr St Med Nerd Font Complete.ttf.license | 3 + img/cheetah.jpg.license | 3 + img/dirt.jpg.license | 3 + img/forward.png.license | 3 + img/happy_mac.png.license | 3 + img/sandstone.png.license | 3 + 23 files changed, 162 insertions(+) create mode 100644 LICENSES/Apache-2.0.txt create mode 100644 LICENSES/MIT.txt create mode 100644 blender/cheetah_cone.blend.license create mode 100644 crates/renderling/aoeu-clip-plot.png.license create mode 100644 crates/renderling/forward_cube_directional.png.license create mode 100644 fonts/Font Awesome 6 Free-Regular-400.otf.license create mode 100644 fonts/Recursive Mn Lnr St Med Nerd Font Complete.ttf.license create mode 100644 img/cheetah.jpg.license create mode 100644 img/dirt.jpg.license create mode 100644 img/forward.png.license create mode 100644 img/happy_mac.png.license create mode 100644 img/sandstone.png.license diff --git a/LICENSES/Apache-2.0.txt b/LICENSES/Apache-2.0.txt new file mode 100644 index 00000000..137069b8 --- /dev/null +++ b/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +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. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +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. diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 00000000..2071b23b --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/blender/cheetah_cone.blend.license b/blender/cheetah_cone.blend.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/blender/cheetah_cone.blend.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/example-culling/Cargo.toml b/crates/example-culling/Cargo.toml index 2cadc668..bf8139ed 100644 --- a/crates/example-culling/Cargo.toml +++ b/crates/example-culling/Cargo.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Schell Scivally > +# +# SPDX-License-Identifier: MIT OR Apache-2.0 + [package] name = "example-culling" version = "0.1.0" diff --git a/crates/example-wasm/Cargo.toml b/crates/example-wasm/Cargo.toml index 94a8867f..d5eb507f 100644 --- a/crates/example-wasm/Cargo.toml +++ b/crates/example-wasm/Cargo.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Schell Scivally > +# +# SPDX-License-Identifier: MIT OR Apache-2.0 + [package] name = "example-wasm" version = "0.1.0" diff --git a/crates/example-wasm/index.html b/crates/example-wasm/index.html index 24dba6a1..4e2124b2 100644 --- a/crates/example-wasm/index.html +++ b/crates/example-wasm/index.html @@ -1,3 +1,9 @@ + + diff --git a/crates/example/Cargo.toml b/crates/example/Cargo.toml index 9415791f..00663838 100644 --- a/crates/example/Cargo.toml +++ b/crates/example/Cargo.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Schell Scivally > +# +# SPDX-License-Identifier: MIT OR Apache-2.0 + [package] name = "example" version = "0.1.0" diff --git a/crates/img-diff/Cargo.toml b/crates/img-diff/Cargo.toml index f745b614..c99abb63 100644 --- a/crates/img-diff/Cargo.toml +++ b/crates/img-diff/Cargo.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Schell Scivally > +# +# SPDX-License-Identifier: MIT OR Apache-2.0 + [package] name = "img-diff" version = "0.1.0" diff --git a/crates/loading-bytes/Cargo.toml b/crates/loading-bytes/Cargo.toml index 572fcce8..4fdbeb3f 100644 --- a/crates/loading-bytes/Cargo.toml +++ b/crates/loading-bytes/Cargo.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Schell Scivally > +# +# SPDX-License-Identifier: MIT OR Apache-2.0 + [package] name = "loading-bytes" version = "0.1.1" diff --git a/crates/loading-bytes/README.md b/crates/loading-bytes/README.md index f59d4cdf..dced8b0a 100644 --- a/crates/loading-bytes/README.md +++ b/crates/loading-bytes/README.md @@ -1,3 +1,9 @@ + + # loading-bytes Sometimes loading things really bites. diff --git a/crates/renderling-ui/Cargo.toml b/crates/renderling-ui/Cargo.toml index 666f70c7..fe5a1a24 100644 --- a/crates/renderling-ui/Cargo.toml +++ b/crates/renderling-ui/Cargo.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Schell Scivally > +# +# SPDX-License-Identifier: MIT OR Apache-2.0 + [package] name = "renderling_ui" version = "0.3.5" diff --git a/crates/renderling-ui/README.md b/crates/renderling-ui/README.md index 553eb173..736d001a 100644 --- a/crates/renderling-ui/README.md +++ b/crates/renderling-ui/README.md @@ -1,3 +1,9 @@ + + # renderling-ui `renderling-ui` specializes [`renderling`](https://crates.io/crates/renderling) to drawing diff --git a/crates/renderling/Cargo.toml b/crates/renderling/Cargo.toml index 8e66197d..b0a7c01c 100644 --- a/crates/renderling/Cargo.toml +++ b/crates/renderling/Cargo.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Schell Scivally > +# +# SPDX-License-Identifier: MIT OR Apache-2.0 + [package] name = "renderling" version = "0.4.9" diff --git a/crates/renderling/aoeu-clip-plot.png.license b/crates/renderling/aoeu-clip-plot.png.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/aoeu-clip-plot.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/forward_cube_directional.png.license b/crates/renderling/forward_cube_directional.png.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/forward_cube_directional.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/sandbox/Cargo.toml b/crates/sandbox/Cargo.toml index c8328f54..be897237 100644 --- a/crates/sandbox/Cargo.toml +++ b/crates/sandbox/Cargo.toml @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Schell Scivally > +# +# SPDX-License-Identifier: MIT OR Apache-2.0 + [package] name = "sandbox" version = "0.1.0" diff --git a/fonts/Font Awesome 6 Free-Regular-400.otf.license b/fonts/Font Awesome 6 Free-Regular-400.otf.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/fonts/Font Awesome 6 Free-Regular-400.otf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/fonts/Recursive Mn Lnr St Med Nerd Font Complete.ttf.license b/fonts/Recursive Mn Lnr St Med Nerd Font Complete.ttf.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/fonts/Recursive Mn Lnr St Med Nerd Font Complete.ttf.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/img/cheetah.jpg.license b/img/cheetah.jpg.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/img/cheetah.jpg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/img/dirt.jpg.license b/img/dirt.jpg.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/img/dirt.jpg.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/img/forward.png.license b/img/forward.png.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/img/forward.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/img/happy_mac.png.license b/img/happy_mac.png.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/img/happy_mac.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/img/sandstone.png.license b/img/sandstone.png.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/img/sandstone.png.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 From 28fb2aa8da7a48f58f518abda92cd879079137df Mon Sep 17 00:00:00 2001 From: "gabriel.ku" Date: Tue, 10 Dec 2024 14:41:21 +0100 Subject: [PATCH 2/3] Amending repository files with REUSE Specification updates --- crates/example-culling/src/main.rs | 4 ++++ crates/example-wasm/src/event.rs | 4 ++++ crates/example-wasm/src/lib.rs | 4 ++++ crates/example/src/camera.rs | 4 ++++ crates/example/src/lib.rs | 4 ++++ crates/example/src/main.rs | 4 ++++ crates/example/src/time.rs | 4 ++++ crates/example/src/utils.rs | 4 ++++ crates/img-diff/src/lib.rs | 4 ++++ crates/loading-bytes/src/lib.rs | 4 ++++ crates/renderling-ui/src/lib.rs | 4 ++++ crates/renderling-ui/src/path.rs | 4 ++++ crates/renderling-ui/src/text.rs | 4 ++++ .../shaders/bloom-bloom_downsample_fragment.spv.license | 3 +++ .../renderling/shaders/bloom-bloom_mix_fragment.spv.license | 3 +++ .../shaders/bloom-bloom_upsample_fragment.spv.license | 3 +++ crates/renderling/shaders/bloom-bloom_vertex.spv.license | 3 +++ .../convolution-brdf_lut_convolution_fragment.spv.license | 3 +++ .../convolution-brdf_lut_convolution_vertex.spv.license | 3 +++ .../shaders/convolution-generate_mipmap_fragment.spv.license | 3 +++ .../shaders/convolution-generate_mipmap_vertex.spv.license | 3 +++ ...olution-prefilter_environment_cubemap_fragment.spv.license | 3 +++ ...nvolution-prefilter_environment_cubemap_vertex.spv.license | 3 +++ .../shaders/cull-compute_copy_depth_to_pyramid.spv.license | 3 +++ ...ull-compute_copy_depth_to_pyramid_multisampled.spv.license | 3 +++ crates/renderling/shaders/cull-compute_culling.spv.license | 3 +++ .../shaders/cull-compute_downsample_depth_pyramid.spv.license | 3 +++ .../shaders/debug-debug_overlay_fragment.spv.license | 3 +++ .../renderling/shaders/debug-debug_overlay_vertex.spv.license | 3 +++ ...ibl-diffuse_irradiance-di_convolution_fragment.spv.license | 3 +++ crates/renderling/shaders/manifest.json.license | 3 +++ .../shaders/skybox-skybox_cubemap_fragment.spv.license | 3 +++ .../shaders/skybox-skybox_cubemap_vertex.spv.license | 3 +++ .../skybox-skybox_equirectangular_fragment.spv.license | 3 +++ crates/renderling/shaders/skybox-skybox_vertex.spv.license | 3 +++ .../renderling/shaders/stage-renderlet_fragment.spv.license | 3 +++ crates/renderling/shaders/stage-renderlet_vertex.spv.license | 3 +++ .../shaders/tonemapping-tonemapping_fragment.spv.license | 3 +++ .../shaders/tonemapping-tonemapping_vertex.spv.license | 3 +++ .../tutorial-tutorial_implicit_isosceles_vertex.spv.license | 3 +++ .../shaders/tutorial-tutorial_passthru_fragment.spv.license | 3 +++ .../shaders/tutorial-tutorial_slabbed_renderlet.spv.license | 3 +++ .../shaders/tutorial-tutorial_slabbed_vertices.spv.license | 3 +++ ...tutorial-tutorial_slabbed_vertices_no_instance.spv.license | 3 +++ crates/renderling/src/atlas.rs | 4 ++++ crates/renderling/src/bits.rs | 4 ++++ crates/renderling/src/bloom.rs | 4 ++++ crates/renderling/src/build.rs | 4 ++++ crates/renderling/src/bvol.rs | 4 ++++ crates/renderling/src/camera.rs | 4 ++++ crates/renderling/src/color.rs | 4 ++++ crates/renderling/src/context.rs | 4 ++++ crates/renderling/src/convolution.rs | 4 ++++ crates/renderling/src/cubemap.rs | 4 ++++ crates/renderling/src/cull.rs | 4 ++++ crates/renderling/src/debug.rs | 4 ++++ crates/renderling/src/draw.rs | 4 ++++ crates/renderling/src/draw_indirect.rs | 4 ++++ crates/renderling/src/lib.rs | 4 ++++ crates/renderling/src/linkage.rs | 4 ++++ crates/renderling/src/math.rs | 4 ++++ crates/renderling/src/mesh.rs | 4 ++++ crates/renderling/src/pbr.rs | 4 ++++ crates/renderling/src/sdf.rs | 4 ++++ crates/renderling/src/skybox.rs | 4 ++++ crates/renderling/src/slab.rs | 4 ++++ crates/renderling/src/stage.rs | 4 ++++ crates/renderling/src/texture.rs | 4 ++++ crates/renderling/src/tonemapping.rs | 4 ++++ crates/renderling/src/transform.rs | 4 ++++ crates/renderling/src/tutorial.rs | 4 ++++ crates/sandbox/src/main.rs | 4 ++++ 72 files changed, 257 insertions(+) create mode 100644 crates/renderling/shaders/bloom-bloom_downsample_fragment.spv.license create mode 100644 crates/renderling/shaders/bloom-bloom_mix_fragment.spv.license create mode 100644 crates/renderling/shaders/bloom-bloom_upsample_fragment.spv.license create mode 100644 crates/renderling/shaders/bloom-bloom_vertex.spv.license create mode 100644 crates/renderling/shaders/convolution-brdf_lut_convolution_fragment.spv.license create mode 100644 crates/renderling/shaders/convolution-brdf_lut_convolution_vertex.spv.license create mode 100644 crates/renderling/shaders/convolution-generate_mipmap_fragment.spv.license create mode 100644 crates/renderling/shaders/convolution-generate_mipmap_vertex.spv.license create mode 100644 crates/renderling/shaders/convolution-prefilter_environment_cubemap_fragment.spv.license create mode 100644 crates/renderling/shaders/convolution-prefilter_environment_cubemap_vertex.spv.license create mode 100644 crates/renderling/shaders/cull-compute_copy_depth_to_pyramid.spv.license create mode 100644 crates/renderling/shaders/cull-compute_copy_depth_to_pyramid_multisampled.spv.license create mode 100644 crates/renderling/shaders/cull-compute_culling.spv.license create mode 100644 crates/renderling/shaders/cull-compute_downsample_depth_pyramid.spv.license create mode 100644 crates/renderling/shaders/debug-debug_overlay_fragment.spv.license create mode 100644 crates/renderling/shaders/debug-debug_overlay_vertex.spv.license create mode 100644 crates/renderling/shaders/ibl-diffuse_irradiance-di_convolution_fragment.spv.license create mode 100644 crates/renderling/shaders/manifest.json.license create mode 100644 crates/renderling/shaders/skybox-skybox_cubemap_fragment.spv.license create mode 100644 crates/renderling/shaders/skybox-skybox_cubemap_vertex.spv.license create mode 100644 crates/renderling/shaders/skybox-skybox_equirectangular_fragment.spv.license create mode 100644 crates/renderling/shaders/skybox-skybox_vertex.spv.license create mode 100644 crates/renderling/shaders/stage-renderlet_fragment.spv.license create mode 100644 crates/renderling/shaders/stage-renderlet_vertex.spv.license create mode 100644 crates/renderling/shaders/tonemapping-tonemapping_fragment.spv.license create mode 100644 crates/renderling/shaders/tonemapping-tonemapping_vertex.spv.license create mode 100644 crates/renderling/shaders/tutorial-tutorial_implicit_isosceles_vertex.spv.license create mode 100644 crates/renderling/shaders/tutorial-tutorial_passthru_fragment.spv.license create mode 100644 crates/renderling/shaders/tutorial-tutorial_slabbed_renderlet.spv.license create mode 100644 crates/renderling/shaders/tutorial-tutorial_slabbed_vertices.spv.license create mode 100644 crates/renderling/shaders/tutorial-tutorial_slabbed_vertices_no_instance.spv.license diff --git a/crates/example-culling/src/main.rs b/crates/example-culling/src/main.rs index 142a1c5f..89b5092d 100644 --- a/crates/example-culling/src/main.rs +++ b/crates/example-culling/src/main.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! An example app showing (and verifying) how frustum culling works in //! `renderling`. use std::{any::Any, sync::Arc}; diff --git a/crates/example-wasm/src/event.rs b/crates/example-wasm/src/event.rs index 5384221c..d57be8ba 100644 --- a/crates/example-wasm/src/event.rs +++ b/crates/example-wasm/src/event.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! A light abstraction over UI event callbacks. //! //! This uses [`futures-lite::Stream`] to send events to downstream listeners. diff --git a/crates/example-wasm/src/lib.rs b/crates/example-wasm/src/lib.rs index 33e879ef..0e2dae1f 100644 --- a/crates/example-wasm/src/lib.rs +++ b/crates/example-wasm/src/lib.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + use futures_lite::StreamExt; use renderling::Context; use wasm_bindgen::prelude::*; diff --git a/crates/example/src/camera.rs b/crates/example/src/camera.rs index a1c29eee..c97d36e5 100644 --- a/crates/example/src/camera.rs +++ b/crates/example/src/camera.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Camera control. use std::str::FromStr; diff --git a/crates/example/src/lib.rs b/crates/example/src/lib.rs index 444b61d5..64afc0b1 100644 --- a/crates/example/src/lib.rs +++ b/crates/example/src/lib.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Runs through all the gltf sample models to test and show-off renderling's //! gltf capabilities. use std::{ diff --git a/crates/example/src/main.rs b/crates/example/src/main.rs index eacfb8da..2ac2adf4 100644 --- a/crates/example/src/main.rs +++ b/crates/example/src/main.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Main entry point for the gltf viewer. use std::sync::Arc; diff --git a/crates/example/src/time.rs b/crates/example/src/time.rs index 7361196e..90a7e534 100644 --- a/crates/example/src/time.rs +++ b/crates/example/src/time.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Time constructs. //! //! Because Instant::now() doesn't work on arch = wasm32. diff --git a/crates/example/src/utils.rs b/crates/example/src/utils.rs index 422b1914..f76983f4 100644 --- a/crates/example/src/utils.rs +++ b/crates/example/src/utils.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Example app utilities. use std::{any::Any, sync::Arc}; diff --git a/crates/img-diff/src/lib.rs b/crates/img-diff/src/lib.rs index e6bd24df..a99b03ff 100644 --- a/crates/img-diff/src/lib.rs +++ b/crates/img-diff/src/lib.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Provides image diffing for testing. use glam::{Vec3, Vec4, Vec4Swizzles}; use image::{DynamicImage, Luma, Rgb, Rgb32FImage, Rgba32FImage}; diff --git a/crates/loading-bytes/src/lib.rs b/crates/loading-bytes/src/lib.rs index fdaef2eb..b6597e10 100644 --- a/crates/loading-bytes/src/lib.rs +++ b/crates/loading-bytes/src/lib.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Abstraction over loading bytes on WASM or other. use snafu::prelude::*; diff --git a/crates/renderling-ui/src/lib.rs b/crates/renderling-ui/src/lib.rs index 3ded1f94..726e0969 100644 --- a/crates/renderling-ui/src/lib.rs +++ b/crates/renderling-ui/src/lib.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! `renderling-ui` is a "GPU driven" 2d renderer with a focus on simplicity and //! ease of use. //! diff --git a/crates/renderling-ui/src/path.rs b/crates/renderling-ui/src/path.rs index 9c92d554..6a6507d3 100644 --- a/crates/renderling-ui/src/path.rs +++ b/crates/renderling-ui/src/path.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Path and builder. //! //! Path colors are sRGB. diff --git a/crates/renderling-ui/src/text.rs b/crates/renderling-ui/src/text.rs index 03c9c9ad..f1867f18 100644 --- a/crates/renderling-ui/src/text.rs +++ b/crates/renderling-ui/src/text.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Text rendering capabilities for `Renderling`. //! //! This module is only enabled with the `text` cargo feature. diff --git a/crates/renderling/shaders/bloom-bloom_downsample_fragment.spv.license b/crates/renderling/shaders/bloom-bloom_downsample_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/bloom-bloom_downsample_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/bloom-bloom_mix_fragment.spv.license b/crates/renderling/shaders/bloom-bloom_mix_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/bloom-bloom_mix_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/bloom-bloom_upsample_fragment.spv.license b/crates/renderling/shaders/bloom-bloom_upsample_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/bloom-bloom_upsample_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/bloom-bloom_vertex.spv.license b/crates/renderling/shaders/bloom-bloom_vertex.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/bloom-bloom_vertex.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/convolution-brdf_lut_convolution_fragment.spv.license b/crates/renderling/shaders/convolution-brdf_lut_convolution_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/convolution-brdf_lut_convolution_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/convolution-brdf_lut_convolution_vertex.spv.license b/crates/renderling/shaders/convolution-brdf_lut_convolution_vertex.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/convolution-brdf_lut_convolution_vertex.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/convolution-generate_mipmap_fragment.spv.license b/crates/renderling/shaders/convolution-generate_mipmap_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/convolution-generate_mipmap_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/convolution-generate_mipmap_vertex.spv.license b/crates/renderling/shaders/convolution-generate_mipmap_vertex.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/convolution-generate_mipmap_vertex.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/convolution-prefilter_environment_cubemap_fragment.spv.license b/crates/renderling/shaders/convolution-prefilter_environment_cubemap_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/convolution-prefilter_environment_cubemap_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/convolution-prefilter_environment_cubemap_vertex.spv.license b/crates/renderling/shaders/convolution-prefilter_environment_cubemap_vertex.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/convolution-prefilter_environment_cubemap_vertex.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/cull-compute_copy_depth_to_pyramid.spv.license b/crates/renderling/shaders/cull-compute_copy_depth_to_pyramid.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/cull-compute_copy_depth_to_pyramid.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/cull-compute_copy_depth_to_pyramid_multisampled.spv.license b/crates/renderling/shaders/cull-compute_copy_depth_to_pyramid_multisampled.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/cull-compute_copy_depth_to_pyramid_multisampled.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/cull-compute_culling.spv.license b/crates/renderling/shaders/cull-compute_culling.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/cull-compute_culling.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/cull-compute_downsample_depth_pyramid.spv.license b/crates/renderling/shaders/cull-compute_downsample_depth_pyramid.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/cull-compute_downsample_depth_pyramid.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/debug-debug_overlay_fragment.spv.license b/crates/renderling/shaders/debug-debug_overlay_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/debug-debug_overlay_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/debug-debug_overlay_vertex.spv.license b/crates/renderling/shaders/debug-debug_overlay_vertex.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/debug-debug_overlay_vertex.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/ibl-diffuse_irradiance-di_convolution_fragment.spv.license b/crates/renderling/shaders/ibl-diffuse_irradiance-di_convolution_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/ibl-diffuse_irradiance-di_convolution_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/manifest.json.license b/crates/renderling/shaders/manifest.json.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/manifest.json.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/skybox-skybox_cubemap_fragment.spv.license b/crates/renderling/shaders/skybox-skybox_cubemap_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/skybox-skybox_cubemap_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/skybox-skybox_cubemap_vertex.spv.license b/crates/renderling/shaders/skybox-skybox_cubemap_vertex.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/skybox-skybox_cubemap_vertex.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/skybox-skybox_equirectangular_fragment.spv.license b/crates/renderling/shaders/skybox-skybox_equirectangular_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/skybox-skybox_equirectangular_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/skybox-skybox_vertex.spv.license b/crates/renderling/shaders/skybox-skybox_vertex.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/skybox-skybox_vertex.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/stage-renderlet_fragment.spv.license b/crates/renderling/shaders/stage-renderlet_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/stage-renderlet_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/stage-renderlet_vertex.spv.license b/crates/renderling/shaders/stage-renderlet_vertex.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/stage-renderlet_vertex.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/tonemapping-tonemapping_fragment.spv.license b/crates/renderling/shaders/tonemapping-tonemapping_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/tonemapping-tonemapping_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/tonemapping-tonemapping_vertex.spv.license b/crates/renderling/shaders/tonemapping-tonemapping_vertex.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/tonemapping-tonemapping_vertex.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/tutorial-tutorial_implicit_isosceles_vertex.spv.license b/crates/renderling/shaders/tutorial-tutorial_implicit_isosceles_vertex.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/tutorial-tutorial_implicit_isosceles_vertex.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/tutorial-tutorial_passthru_fragment.spv.license b/crates/renderling/shaders/tutorial-tutorial_passthru_fragment.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/tutorial-tutorial_passthru_fragment.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/tutorial-tutorial_slabbed_renderlet.spv.license b/crates/renderling/shaders/tutorial-tutorial_slabbed_renderlet.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/tutorial-tutorial_slabbed_renderlet.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/tutorial-tutorial_slabbed_vertices.spv.license b/crates/renderling/shaders/tutorial-tutorial_slabbed_vertices.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/tutorial-tutorial_slabbed_vertices.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/shaders/tutorial-tutorial_slabbed_vertices_no_instance.spv.license b/crates/renderling/shaders/tutorial-tutorial_slabbed_vertices_no_instance.spv.license new file mode 100644 index 00000000..5293710d --- /dev/null +++ b/crates/renderling/shaders/tutorial-tutorial_slabbed_vertices_no_instance.spv.license @@ -0,0 +1,3 @@ +SPDX-FileCopyrightText: 2024 Schell Scivally > + +SPDX-License-Identifier: MIT OR Apache-2.0 diff --git a/crates/renderling/src/atlas.rs b/crates/renderling/src/atlas.rs index 9a03ea87..3f80aeb1 100644 --- a/crates/renderling/src/atlas.rs +++ b/crates/renderling/src/atlas.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Texture atlas. //! //! All images are packed into an atlas at staging time. diff --git a/crates/renderling/src/bits.rs b/crates/renderling/src/bits.rs index dafed727..d2f296fe 100644 --- a/crates/renderling/src/bits.rs +++ b/crates/renderling/src/bits.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Helpers for bitwise operations. use core::ops::RangeInclusive; diff --git a/crates/renderling/src/bloom.rs b/crates/renderling/src/bloom.rs index b3bdddee..660a25a0 100644 --- a/crates/renderling/src/bloom.rs +++ b/crates/renderling/src/bloom.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Physically based bloom. //! //! As described in [learnopengl.com's Physically Based Bloom article](https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom). diff --git a/crates/renderling/src/build.rs b/crates/renderling/src/build.rs index c11bbd31..0531abb6 100644 --- a/crates/renderling/src/build.rs +++ b/crates/renderling/src/build.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Generates linkage for shaders. #![allow(unexpected_cfgs)] use quote::quote; diff --git a/crates/renderling/src/bvol.rs b/crates/renderling/src/bvol.rs index 6ed86821..6b00fec6 100644 --- a/crates/renderling/src/bvol.rs +++ b/crates/renderling/src/bvol.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Bounding volumes and culling primitives. //! //! The initial implementation here was gleaned from `treeculler`, which diff --git a/crates/renderling/src/camera.rs b/crates/renderling/src/camera.rs index a9f96561..f0f1fdab 100644 --- a/crates/renderling/src/camera.rs +++ b/crates/renderling/src/camera.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Camera projection, view and utilities. use crabslab::SlabItem; use glam::{Mat4, Vec3}; diff --git a/crates/renderling/src/color.rs b/crates/renderling/src/color.rs index 95173394..27419251 100644 --- a/crates/renderling/src/color.rs +++ b/crates/renderling/src/color.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Color utils. use glam::Vec4; diff --git a/crates/renderling/src/context.rs b/crates/renderling/src/context.rs index a745c7f8..0cfedd28 100644 --- a/crates/renderling/src/context.rs +++ b/crates/renderling/src/context.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Rendering context initialization and frame management. use core::fmt::Debug; use std::{ diff --git a/crates/renderling/src/convolution.rs b/crates/renderling/src/convolution.rs index 310114fa..934bc44f 100644 --- a/crates/renderling/src/convolution.rs +++ b/crates/renderling/src/convolution.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Convolution shaders. //! //! These shaders convolve various functions to produce cached maps. diff --git a/crates/renderling/src/cubemap.rs b/crates/renderling/src/cubemap.rs index aef2a8fd..ba530889 100644 --- a/crates/renderling/src/cubemap.rs +++ b/crates/renderling/src/cubemap.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Render pipelines and layouts for creating cubemaps. use crate::texture::Texture; diff --git a/crates/renderling/src/cull.rs b/crates/renderling/src/cull.rs index 8a204bd9..229bdfc3 100644 --- a/crates/renderling/src/cull.rs +++ b/crates/renderling/src/cull.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Compute based culling. //! //! Frustum culling as explained in diff --git a/crates/renderling/src/debug.rs b/crates/renderling/src/debug.rs index 72b5e924..86cd488d 100644 --- a/crates/renderling/src/debug.rs +++ b/crates/renderling/src/debug.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Debug overlay. use crabslab::{Id, Slab}; use glam::{Vec2, Vec3Swizzles, Vec4, Vec4Swizzles}; diff --git a/crates/renderling/src/draw.rs b/crates/renderling/src/draw.rs index 70c9a4b9..105cc6a2 100644 --- a/crates/renderling/src/draw.rs +++ b/crates/renderling/src/draw.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Handles queueing draw calls. //! //! [`DrawCalls`] is used to maintain the list of all staged [`Renderlet`]s. diff --git a/crates/renderling/src/draw_indirect.rs b/crates/renderling/src/draw_indirect.rs index cad1e2bc..00f224ca 100644 --- a/crates/renderling/src/draw_indirect.rs +++ b/crates/renderling/src/draw_indirect.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + use crabslab::SlabItem; #[derive(Default, Debug, Clone, Copy, PartialEq, SlabItem)] diff --git a/crates/renderling/src/lib.rs b/crates/renderling/src/lib.rs index 1ef4b474..69c4bfb5 100644 --- a/crates/renderling/src/lib.rs +++ b/crates/renderling/src/lib.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! A "GPU driven" renderer with a focus on simplicity and ease of use. //! Backed by WebGPU. //! diff --git a/crates/renderling/src/linkage.rs b/crates/renderling/src/linkage.rs index bbffe8f8..d4b92846 100644 --- a/crates/renderling/src/linkage.rs +++ b/crates/renderling/src/linkage.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Provides convenient wrappers around renderling shader linkage. //! //! # Warning! diff --git a/crates/renderling/src/math.rs b/crates/renderling/src/math.rs index 3a09b2a8..fcfb4149 100644 --- a/crates/renderling/src/math.rs +++ b/crates/renderling/src/math.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Mathematical helper types and functions. //! //! Primarily this module re-exports types from `glam`. It also adds diff --git a/crates/renderling/src/mesh.rs b/crates/renderling/src/mesh.rs index 788bd1f2..cdb06e66 100644 --- a/crates/renderling/src/mesh.rs +++ b/crates/renderling/src/mesh.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Sometimes you just need a mesh. use wgpu::util::DeviceExt; diff --git a/crates/renderling/src/pbr.rs b/crates/renderling/src/pbr.rs index 0eca3f13..a8ac52b0 100644 --- a/crates/renderling/src/pbr.rs +++ b/crates/renderling/src/pbr.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! "Physically based" types and functions. //! //! ## References diff --git a/crates/renderling/src/sdf.rs b/crates/renderling/src/sdf.rs index 80cabc2b..3210809f 100644 --- a/crates/renderling/src/sdf.rs +++ b/crates/renderling/src/sdf.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! SDF functions for use in shaders. //! //! For more info, see these great articles: diff --git a/crates/renderling/src/skybox.rs b/crates/renderling/src/skybox.rs index d3797f3c..390736ca 100644 --- a/crates/renderling/src/skybox.rs +++ b/crates/renderling/src/skybox.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Skybox shaders and CPU code. use crabslab::{Id, Slab}; use glam::{Mat3, Mat4, Vec2, Vec3, Vec4, Vec4Swizzles}; diff --git a/crates/renderling/src/slab.rs b/crates/renderling/src/slab.rs index 5bdf9a1e..339529cd 100644 --- a/crates/renderling/src/slab.rs +++ b/crates/renderling/src/slab.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! GPU and CPU slab allocation. //! //! Re-exports [`Array`], [`Id`], [`Slab`] and [`SlabItem`] from [`crabslab`](https://docs.rs/crabslab/latest/crabslab/). diff --git a/crates/renderling/src/stage.rs b/crates/renderling/src/stage.rs index 70cda871..7da6c5d8 100644 --- a/crates/renderling/src/stage.rs +++ b/crates/renderling/src/stage.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! GPU staging area. //! //! The `Stage` object contains a slab buffer and a render pipeline. diff --git a/crates/renderling/src/texture.rs b/crates/renderling/src/texture.rs index 8f254799..9be1ec25 100644 --- a/crates/renderling/src/texture.rs +++ b/crates/renderling/src/texture.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Wrapper around [`wgpu::Texture`]. use std::{ops::Deref, sync::Arc}; diff --git a/crates/renderling/src/tonemapping.rs b/crates/renderling/src/tonemapping.rs index 96fd63e7..59782af5 100644 --- a/crates/renderling/src/tonemapping.rs +++ b/crates/renderling/src/tonemapping.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Tonemapping from an HDR texture to SDR. //! //! ## References diff --git a/crates/renderling/src/transform.rs b/crates/renderling/src/transform.rs index 5d328e1d..61116bdc 100644 --- a/crates/renderling/src/transform.rs +++ b/crates/renderling/src/transform.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! Decomposed 3d transform. use crabslab::SlabItem; use glam::{Mat4, Quat, Vec3}; diff --git a/crates/renderling/src/tutorial.rs b/crates/renderling/src/tutorial.rs index ba3498f2..61546925 100644 --- a/crates/renderling/src/tutorial.rs +++ b/crates/renderling/src/tutorial.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! A tutorial module for the renderling crate. use crabslab::{Array, Id, Slab, SlabItem}; use glam::{Mat4, Vec4}; diff --git a/crates/sandbox/src/main.rs b/crates/sandbox/src/main.rs index 8691cc7e..89430790 100644 --- a/crates/sandbox/src/main.rs +++ b/crates/sandbox/src/main.rs @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 Schell Scivally > +// +// SPDX-License-Identifier: MIT OR Apache-2.0 + //! This is a sandbox. //! //! This program will change on a whim and does not contain anything all that From 6d5e8f162b6c3f4c9b3be9f95b915ef323a5993c Mon Sep 17 00:00:00 2001 From: "gabriel.ku" Date: Tue, 10 Dec 2024 14:50:24 +0100 Subject: [PATCH 3/3] updating CC0-1.0 license headers --- .gitattributes | 4 ++ .gitignore | 4 ++ LICENSES/CC0-1.0.txt | 121 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 LICENSES/CC0-1.0.txt diff --git a/.gitattributes b/.gitattributes index 0fa5070f..675b46d1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 Schell Scivally > +# +# SPDX-License-Identifier: CC0-1.0 + *.spv binary *.wgsl binary diff --git a/.gitignore b/.gitignore index 1d787510..49928250 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 Schell Scivally > +# +# SPDX-License-Identifier: CC0-1.0 + # macOS *.DS_Store # will have compiled files and executables diff --git a/LICENSES/CC0-1.0.txt b/LICENSES/CC0-1.0.txt new file mode 100644 index 00000000..0e259d42 --- /dev/null +++ b/LICENSES/CC0-1.0.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work.