# Upgrading Engine V1 Projects

The Editor runs every project on Engine V2. Projects made for Engine V1 are upgraded to Engine V2 automatically the first time someone with write access opens them in the Editor. The Editor converts the open scene, saves the change and reloads. There's no way to switch a project back to Engine V1.

Engine V2 changed how some parts of a scene are set up, and some of the engine's APIs. This page covers what the upgrade does for you, and what to check yourself afterwards.

## What the Upgrade Changes

### Gamma and Tone Mapping

Engine V1 set gamma and tone mapping for the whole scene, in the Rendering settings. Engine V2 sets them on each camera, so every Camera component has **Tonemapping** and **Gamma** fields:

[Image: The Tonemapping and Gamma fields on a Camera component]

The upgrade copies the open scene's gamma and tone mapping to each camera in that scene, and the Console lists each camera whose values change. Cameras in the project's other scenes aren't changed, so open each of those scenes and check its cameras.

The Viewport has its own gamma and tone mapping, which affect only how the scene looks in the Editor. Set them with **Camera Tonemapping** and **Camera Gamma** in the [Editor settings](https://developer.playcanvas.com/user-manual/editor/interface/settings/editor.md):

[Image: The Viewport gamma and tone mapping in the Editor settings]

### sRGB Textures

Engine V2 needs to know whether each texture is sRGB. Textures that store colors, such as diffuse and emissive maps, should be sRGB for accurate color, while textures that store other data, such as normal maps, should not. The setting is in the texture asset's panel:

[Image: The sRGB setting of a texture asset]

The Editor checks each texture's setting against the places it's used. When textures need attention, the status bar at the bottom of the Editor shows **N audits found**, and the Console lists each affected texture or texture atlas and where it's used:

[Image: Console messages about the sRGB settings of textures]

- Select **N audits found**, then **Fix issues**, to fix every texture whose uses all need the same setting.
- Resolve conflicts, where a texture's uses need different settings, one at a time. Selecting a Console message takes you to the use. To use the same image both ways, duplicate the texture so that each use has its own copy.

[Video](https://developer.playcanvas.com/video/asset-auditor.mp4)

For more about sRGB, see [Textures](https://developer.playcanvas.com/user-manual/graphics/linear-workflow/textures.md) in the Linear Workflow section.

### Scripts

The upgrade doesn't change your scripts. Engine V2 changed or removed some Engine V1 APIs, so check your scripts against the [Engine Migrations](https://developer.playcanvas.com/user-manual/engine/migrations.md) guide. Then launch the project with the **Debug** [launch option](https://developer.playcanvas.com/user-manual/editor/interface/launch-page.md) ticked, and look for errors and deprecation warnings in the browser's JavaScript console.

:::ai
With the **[Editor MCP Server](https://developer.playcanvas.com/user-manual/editor/mcp-server.md)**, an AI assistant can find the scripts that use Engine V1 APIs, update them, and launch the project to check the result. Its page includes a [demo](https://developer.playcanvas.com/user-manual/editor/mcp-server.md#verify-the-running-result) of an assistant migrating an Engine V1 project.
:::

## Troubleshooting the Upgrade

### The Scene Looks Brighter or Darker

Check every place your scene's look can come from:

- **Each camera**: **Gamma** and **Tonemapping** on every Camera component, in every scene. See [Gamma and Tone Mapping](https://developer.playcanvas.com/user-manual/editor/upgrading-engine-v1-projects.md#gamma-and-tone-mapping).
- **The Viewport**: **Camera Gamma** and **Camera Tonemapping** in the Editor settings, which change only how the Viewport looks.
- **Each texture**: its sRGB setting. See [sRGB Textures](https://developer.playcanvas.com/user-manual/editor/upgrading-engine-v1-projects.md#srgb-textures).

### A Camera Looks Different in the Editor and on the Launch Page

If a script creates the camera, set its gamma and tone mapping explicitly in code, with the Camera component's `gammaCorrection` and `toneMapping` properties.
