- Home /
Emission not working with Universal Render Pipeline
Hi, I upgraded my project to the Universal Render Pipeline with Unity 2019.4.1f1
I have an object which is using the Lit shader that when clicked the following code is executed to enable emission on that object
myGameObject.GetComponent<Renderer>().material.SetColor("_EmissionColor",Color.yellow * 1.4f);
However, the emission doesn't seem to work although when I expand the shader properties on the inspector the emission field does indeed turn Yellow but it has no effect in the game.
If I clicked on the emission color in the inspector (As if I wanted to change the color manually using the color picker) everything suddenly works as expected!
I do have HDR enabled. I also tried calling EnableKeyword("_EmissionColor") on the game object renderer but it didn't work either.
Any ideas what is wrong and how can I fix it?
Your answer
Follow this Question
Related Questions
2DPixelPerfect from Universal RP causes Jittering? 0 Answers
How to make trail renderer working with the URP ? 0 Answers
URP material converter loading forever/stuck (Unity 2021.2 beta) 0 Answers
How to use CommandBuffer with RenderPipelineManager to draw a material to fullscreen? 0 Answers
Hybrid Renderer Visual Bug (FPS Drop?) 0 Answers