> For the complete documentation index, see [llms.txt](https://motiongamesstudio.gitbook.io/magic-sun-direction/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://motiongamesstudio.gitbook.io/magic-sun-direction/getting-started/quick-start.md).

# Quick Start

{% hint style="success" %}
The steps described below are the same for all Render Pipelines, however, for SRP you have to perform some preparatory steps additionally.

* [For URP](#for-universal-render-pipeline)
* [For HDRP](#for-high-definition-render-pipeline)
  {% endhint %}

## For Built-In Render Pipeline

### 1. Open Demo Scene

Go to **Magic Sun Direction** ➞ **Examples** folder and open the **Demo** scene.

### 2. Go To "Set Sun" Window

Go to **Tools** ➞ **Magic Tools** ➞ **Magic Sun Direction** ➞ **Align Directional Light...**

The "**Align Directional Light**" window will be opened, by default it looks like in the screenshot below.

<figure><img src="https://2941534617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4pSJ1fwZr3mEMjWartao%2Fuploads%2FqytZpFLSkjeDdU4M6dIF%2Fimage.png?alt=media&amp;token=7aecd664-b419-4eb1-a8ac-3f18413db37b" alt=""><figcaption><p>"Align Directional Light" Window</p></figcaption></figure>

### 3. Activate Direction Setting Mode

Press the "**Align Direction**" button to switch to the orientation mode of the selected directional light source. The block with the overlay settings will be expanded.

<figure><img src="https://2941534617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4pSJ1fwZr3mEMjWartao%2Fuploads%2Fg6geMQlrLEqyVT1NTgwR%2Fimage.png?alt=media&amp;token=6a73425a-a7e3-4eef-96ff-b415327b2004" alt=""><figcaption><p>Overlay Settings Expanded</p></figcaption></figure>

### 4. Align The Directional Light

After switching to align mode, the overlay will be activated. Now your **Scene View** should look like this.

<figure><img src="https://2941534617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4pSJ1fwZr3mEMjWartao%2Fuploads%2Fu37pnIJqn1dKypdHsuYj%2Fimage.png?alt=media&amp;token=e9a3006d-b586-496c-af54-350711727893" alt=""><figcaption><p>MSD Overlay Enabled</p></figcaption></figure>

Rotate the camera until the light source on the static skybox is in the center of the circle. Use the settings in the "**Align Directional Light**" window for a more accurate orientation.

<figure><img src="https://2941534617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4pSJ1fwZr3mEMjWartao%2Fuploads%2FPxSQ9zPSdXAWXkq9hosk%2Fimage.png?alt=media&amp;token=026859a3-4cc8-4e10-9e92-a038053c7cff" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Check the "**Track Skybox Rotation**" option if you want MSD to track the skybox rotation and perform orientation automatically. (also in runtime)
{% endhint %}

Close the "**Align Directional Light**" window.&#x20;

Your directional light source now completely matches the light source on the skybox.

<figure><img src="https://2941534617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4pSJ1fwZr3mEMjWartao%2Fuploads%2FsbzpLOjuhaSTeCX5tww0%2Fimage.png?alt=media&amp;token=229d6677-0da9-4d59-a43d-d3150628a899" alt=""><figcaption></figcaption></figure>

## For Universal Render Pipeline

### 1. Importing the URP Support Package

Go to **Magic Sun Direction** ➞ **Support Packages** folde&#x72;**.**

Import the support package for URP.

<figure><img src="https://2941534617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4pSJ1fwZr3mEMjWartao%2Fuploads%2F2VuZoU91gP9fnsmn0NHq%2Fimage.png?alt=media&amp;token=80c236da-0d8f-4712-bcc3-82f45b2d7f66" alt=""><figcaption></figcaption></figure>

### 2. Adding MSD Overlay Renderer Future

Go to the **Universal Renderer Data** asset and click the "**Add Renderer Future**" button.&#x20;

In the drop-down menu, select "**MSD Overlay URP**".

<figure><img src="https://2941534617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4pSJ1fwZr3mEMjWartao%2Fuploads%2FoULxuK33zHTLMnFZL4yg%2Fimage.png?alt=media&amp;token=dbfb88c9-4287-4ba2-b078-e71ea1937a7a" alt=""><figcaption></figcaption></figure>

**MSD Overlay URP** renderer future will be added to the list.

### 3. Setting The Orientation

The next steps are no different from the steps for [Built-In](#for-built-in-render-pipeline).

## For High Definition Render Pipeline

### 1. Importing the HDRP Support Package

Go to **Magic Sun Direction** ➞ **Support Packages**

Import the support package for HDRP.

<figure><img src="https://2941534617-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4pSJ1fwZr3mEMjWartao%2Fuploads%2FsutqA289SOBdx2S5gr9Y%2Fimage.png?alt=media&amp;token=cfeb9223-a87b-4f09-93d9-b1326ad4ab80" alt=""><figcaption></figcaption></figure>

### 2. Setting The Orientation

The next steps are no different from the steps for [Built-In](#for-built-in-render-pipeline).
