----------------------------------------------------------------------
Combined Licensing Note
----------------------------------------------------------------------

This repository is based on code from **Mitsuba 3**, originally developed by
Wenzel Jakob and licensed under the terms listed at the bottom of this page.

All modifications and additions made for **misuka** by the misuka contributors
are licensed under the **PolyForm Noncommercial License 1.0.0**. This is a
source-available, noncommercial-use license. Commercial use of misuka's own
code requires a separate agreement with the misuka maintainers (listed under
"Maintainers" in [`CONTRIBUTORS`](CONTRIBUTORS)).

When using, modifying, or redistributing this software, you must comply
with both licenses as they apply to the respective portions of the code,
as determined by the File Level Licensing Rules below.

----------------------------------------------------------------------
File Level Licensing Rules
----------------------------------------------------------------------

1. New files created for misuka
   All files authored specifically for misuka and not derived from Mitsuba
   code (for example, the acoustic BSDF, integrator, sensor, and film
   plugins, and the acoustic Python AD integrators) are licensed under the
   PolyForm Noncommercial License 1.0.0. Such a file is one with no
   counterpart in the upstream Mitsuba 3 repository
   (https://github.com/mitsuba-renderer/mitsuba3).

   Such files should carry an SPDX-style header as the first non-shebang
   line of the file:

       SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0

   Fallback for files without a header: absence of this header does NOT
   change the license of a misuka-authored file, as defined above.

2. Files originating from Mitsuba 3
   Files that come from the Mitsuba 3 codebase remain under the original
   Mitsuba 3 license.

3. Modified Mitsuba files
   For files derived from Mitsuba code that contain modifications by
   misuka contributors:
   - The original Mitsuba portions remain under the original Mitsuba
     license.
   - Any modifications the contributor wishes to license under PolyForm
     Noncommercial 1.0.0 must be clearly marked in the file header.
   - If no such note is present, the entire file remains under the
     original Mitsuba (BSD) license.

----------------------------------------------------------------------
Code for misuka (PolyForm Noncommercial 1.0.0)
----------------------------------------------------------------------

Copyright (c) 2025-2026 the misuka maintainers

All modifications and additions to this software made for misuka are
licensed under the terms of the PolyForm Noncommercial License 1.0.0.

You may obtain a copy of the PolyForm Noncommercial License 1.0.0 at:
https://polyformproject.org/licenses/noncommercial/1.0.0

Licensor: the misuka maintainers
Software: misuka (the acoustic BSDF, integrator, sensor, and film plugins,
the acoustic Python AD integrators, and other misuka-specific additions to
Mitsuba 3, as identified under the "File Level Licensing Rules" above)
Required Notice: Copyright (c) 2025-2026 the misuka maintainers
(https://github.com/misuka-renderer/misuka)

This means, in summary (see the link above for the binding text):
- Any noncommercial purpose is permitted: personal use, research,
  education, and use by charitable, educational, public-research, public
  safety/health, environmental, or government institutions.
- Commercial use is not permitted under this license and requires a
  separate agreement with the misuka maintainers.
- You must pass along a copy of these terms (or the URL for them) and the
  Required Notice above to anyone who receives a copy of the software from
  you.
- The software is provided as is, without warranty, to the extent allowed
  by law.

----------------------------------------------------------------------
Original Code from Mitsuba 3
----------------------------------------------------------------------

Copyright (c) 2017 Wenzel Jakob <wenzel.jakob@epfl.ch>, All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors
   may be used to endorse or promote products derived from this software
   without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

You are under no obligation whatsoever to provide any bug fixes, patches, or
upgrades to the features, functionality or performance of the source code
("Enhancements") to anyone; however, if you choose to make your Enhancements
available either publicly, or directly to the author of this software, without
imposing a separate written license agreement for such Enhancements, then you
hereby grant the following license: a non-exclusive, royalty-free perpetual
license to install, use, modify, prepare derivative works, incorporate into
other computer software, distribute, and sublicense such enhancements or
derivative works thereof, in binary and source code form.
