One-click repair of Unity HDRP pink material, and the treatment of materials that cannot be automatically repaired

In the production of Unity, if you import from the store to a project file that has been equipped with HDRP, there will often be a phenomenon of pink material.

The reason for this is that the materials in the HDRP environment need a new rendering method, and the shader presets of their materials in the inspector are not options that can be rendered in the HDRP environment, so we need to do some research on them. Revise.

What should be done at this time? For most materials, just click the following button to change most materials back to the color you want:

Exit--Rendering--Materials--Convert All Built-in Materials to HDRP 

However, for example, the tree seen in the current picture, it cannot turn pink. At this time, we need to manually repair it (hope that there are not many materials that you cannot automatically repair), how to do it? Let's first observe the rendering method of the current material. Let me take an example of a tree that cannot be repaired:

When we look at the existence of trees in HDRP, we find that HDRP has only one SpeedTree8 for natural rendering:

That's why the tree cannot be upgraded (because the corresponding upgrade in HDRP cannot be found). After clicking, the material will be displayed normally, and there is no need for too much setting and processing, just do the next step you want to do.
------------renew-----------------------------

After this setting, although the tree can be displayed in the Scene, it still cannot be displayed normally in the game. The HDPR tree can only use SpeedTree8 as a solution. If the tree needs to be rendered in the scene, please use the SpeedTree resource.

Guess you like

Origin blog.csdn.net/yling2003/article/details/129745947