# Compatibility

{% hint style="danger" %}
**Please note that the asset has two different versions.**&#x20;

[**Lite** ](https://assetstore.unity.com/packages/tools/utilities/magic-lightmap-switcher-built-in-rp-192332)version which only supports **Built-In RP** and [**Pro** ](https://assetstore.unity.com/packages/slug/196489)version which supports **Built-In + URP + HDRP**.&#x20;

The manual is identical for both versions.
{% endhint %}

## Compatibility With Editor Versions

The plugin was developed on **Unity 2019.4.21f1**, so this version will be considered minimal.

## Platform Compatibility

**Tested platforms:**

* **Windows**
* **iOS**
* **Web GL**
* **Android**
* **Oculus Quest 2**
* **Swich**

## Render Pipeline Compatibility

### Built-In

| Rendering Mode                          | Supported Features                                                                                                                                                                                                                                                                                                                                                                                                                      |
| --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Forward Rendering**                   | Fully Supported.                                                                                                                                                                                                                                                                                                                                                                                                                        |
| **Deferred Rendering**                  | <p>At the moment, the plugin does not support blending and switching of deferred reflections for Built-In RP. </p><p>For reflections to work properly in Deferred Mode, go to graphics settings and set the "<strong>Deferred Reflections</strong>" option to "<strong>No Support</strong>" (<strong>Project Settings ➞ Graphics ➞ Buil-In Shader Settings</strong>) </p><p>After this action, a restart of the editor is required.</p> |

### Universal Render Pipeline (URP)

#### Supported Versions - 7; 8; 9; 10; 11, 12, 13, 14

| Rendering Mode                     | Supported Features                                                                                                                                        |
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Forward Rendering**              | Fully Supported.                                                                                                                                          |
| **Deferred Rendering**             | Fully Supported.                                                                                                                                          |

### **High Defenition Render Pipeline (HDRP)**

#### Supported Versions - 7; 8; 9; 10; 11, 12, 13, 14

| Rendering Mode                          | Supported Features |
| --------------------------------------- | ------------------ |
| **Forward Rendering**                   | Fully Supported.   |
| **Deferred Rendering**                  | Fully Supported.   |

## **Custom Shaders**

The asset will work with any custom shader, unless that shader uses its **own GI lighting functions**. To make the shader compatible with MLS, add compilation directives to it.

```
//--------------------------------------
// MLS defined keywords
#pragma multi_compile MLS_LIGHTMAPS_BLENDING_ON MLS_LIGHTMAPS_BLENDING_OFF
#pragma multi_compile MLS_REFLECTIONS_BLENDING_ON MLS_REFLECTIONS_BLENDING_OFF
#pragma multi_compile MLS_TEXTURE_ARRAYS_ON MLS_TEXTURE_ARRAYS_OFF
```

To support shaders created using Shader Graph, you also need to add keywords.

<figure><img src="https://484743511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-ML4jBQpiY0hXPLy-BzC%2Fuploads%2F2sIt3ieW1MKBrcjYOfwq%2Fimage.png?alt=media&#x26;token=e24f15c7-935c-4ebe-87e3-df951fbf635c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://484743511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-ML4jBQpiY0hXPLy-BzC%2Fuploads%2FKadCqSSEhymYYmzZ9iEk%2Fimage.png?alt=media&#x26;token=dbae11bb-083a-4c5e-acc0-9c338234707c" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
TEXTURE\_ARRAYS requires a shader target of at least 4.5
{% endhint %}

For those using custom lighting features. Write to the developer on any support channel. It's pretty easy to add blending and switching support to your shaders.
