Unity optimization Shu light baking

Tip: Select the right side of the directory, you can quickly find what you need

This series of blog links: Portal

 

This section explains blog content:

  • The advantages of baking
  • Explain the reasons for baking blackened objects
  • Explain how to bake
  • Recommended baking parameters and effects

 

 

A baking advantages

Reducing Setpass Calls (CPU rendering state changing instruction issued to the GPU), thus also reducing the GPU rendering times, optimize the running speed, the power consumption and the like.

To ensure real-time calculation due to the rendering speed, we can not calculate a lot of lighting information, but information can be baked calculate a more realistic reflection of light in advance, and therefore have more light than real-time rendering of detail, after baking and more real.

 

 

Second, why baking black

Phenomenon as follows:

 

problem causes:

Black fbx model GenerateLightmapUVs not open

 

Resolved:

 

 

 Third, the baking method

a, the object was to check on the light Lightmap Static

b, the Mode is set to all light sources Baked

c、window ——> Lighting ——> Settings:

Cancel Auto Genenrate, click Generate Lighting.

 

 

Fourth, the recommended baking parameters and effects

 

Published 320 original articles · won praise 77 · views 170 000 +

Guess you like

Origin blog.csdn.net/weixin_38239050/article/details/104764052