# Wrong image colors when using Web Browser

**URL:** <https://forums.unrealengine.com/t/wrong-image-colors-when-using-web-browser/1815516>\
**Category:** Blueprint\
**Tags:** unreal-engine, web-browser, Blueprint, question\
**Created:** [April 22, 2024, 1:33pm UTC](https://forums.unrealengine.com/t/wrong-image-colors-when-using-web-browser/1815516 "2024-04-22T13:33:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GameDevIsFun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GameDevIsFun](https://forums.unrealengine.com/u/GameDevIsFun)\
**Post date:** [April 22, 2024, 1:33pm UTC](https://forums.unrealengine.com/t/wrong-image-colors-when-using-web-browser/1815516/1 "2024-04-22T13:33:26Z")

</div>

I tried to add a Web Browser inside the widget which contains an image for the link. It does show the image but it has a white glow to it, and I think it is because of the material which is `Widget3DPassThrough_Masked_OneSided` that is set by default.

The problem is that I do not know how to make a different material to show the image correctly, and instead it showed either a white image and not the one from the link, or nothing at all. 😄

This is how it looks by default, on the left it is a widget with `Web Browser` inside it, and on the right is a widget with a `Image` inside it with the same image only this time as an asset.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/9/83980e1cc8b0c77380c904211122d2b359d61857.jpeg)

So what material should I make? How should I set that material so that the Widget from the left to look like the one from the right, so that the colors are right?

---

<div class="post-metadata">

**Author:** ![GameDevIsFun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GameDevIsFun](https://forums.unrealengine.com/u/GameDevIsFun)\
**Post date:** [April 22, 2024, 3:10pm UTC](https://forums.unrealengine.com/t/wrong-image-colors-when-using-web-browser/1815516/2 "2024-04-22T15:10:20Z")

</div>

Actually I don’t think it is the material, and maybe it has something to do with the `Web Browser` element itself, as other elements on that widget look fine.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/f/42f3082eea74dad22b8112519bf40084f62dffb6.jpeg)

On top of the `Web Browser` I added an `Image` and that looks fine.

---

<div class="post-metadata">

**Author:** ![Valentinvis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/valentinvis/32/1008648_2.png) [@Valentinvis](https://forums.unrealengine.com/u/Valentinvis)\
**Post date:** [April 22, 2024, 3:48pm UTC](https://forums.unrealengine.com/t/wrong-image-colors-when-using-web-browser/1815516/3 "2024-04-22T15:48:10Z")

</div>

From what I understood it has something to do with the color space `Web Browser` (sRGB) is using compared to `Widget` (linear RGB).

Until Unreal Engine adds a fix to this problem (which is extremely old, since at least 2016), you can do the following:

- Go to where default `Widget` material is located, for me it was `Widget3DPassThrough_Masked_OneSided` and that can be found in `Engine / Content / Engine Materials`
- Make a copy of the parent material (not material instance), for me it was `Widget3DPassThrough`
- Inside the copy add the following (circled in red, the rest is the same, only I arranged them so I can see them better)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/e/5/2e5433a81b0b2d1819247508b5e13fcaee2866d6.jpeg)

- Make a material instance and change the value for “Exp” to what you like, a value of 2 looks fine, but I like 2.1 more, you can play with that number

Be careful that by using this new material, all other elements from that `Widget` will look a lot darker, so only use the material for a widget that only has a `Web Browser`.

It is not a perfect fix, but it is useable.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [May 22, 2024, 3:48pm UTC](https://forums.unrealengine.com/t/wrong-image-colors-when-using-web-browser/1815516/4 "2024-05-22T15:48:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
