I am creating a game where you carry a smart phone with its screen visible in the main camera. I’ve got it working with a render texture and a 2nd camera pointed at a canvas UI. However, I want the phone screen to emit light like it is a real backlit screen. So even in a dark room you could see the screen. How could I do this with URP in a performant manner?
In the screenshot below, I am using the shader from Universal Render Pipeline/2D/Sprite-Lit-Default.
Hey!
Ok the emissive does not work because you want to have a white font ?
I made a test ,you can see the result on the picture or download the project in the link.
Do not hesitate if you have any question
Thanks @Tsadh for taking the time. I took a look and it seems that you are not rendering the Canvas on the texture of the screen of the smartphone, like I am doing. As mentioned above, I use a 2nd camera that renders the canvas to the texture of the smartphone.
As you can see I created a new camera and cast the screen on a render texture. I put it in a plane call “Plane” under the smartphone do not forget the transparency (and alpha 255 + color wright).
Tell me if is that you want or not :S