U3D性能优化之MeshBaker(带光照)
①首先選中將要拖入場(chǎng)景的模型,如圖勾選"Generate Lightmap UVs",然后將該模型拖入場(chǎng)景,勾選Static,接著把光源改成點(diǎn)光源方便觀察,并把Mode改成Baked
?
②點(diǎn)擊Unity窗口上方"Window一>Rendering一>Lighting Settings",在彈出的窗口中點(diǎn)擊"Generate Lighting",等待生成光照貼圖
③點(diǎn)擊Unity窗口上方"GameObject一>Create Other一>Mesh Baker一>TextureBaker and MeshBaker",選中Hierarchy面板中的"TextureBaker (0)",點(diǎn)擊Inspector面板中的"Open Tools For Adding Objects",在新彈窗中先點(diǎn)擊"Search For Meshes To Add",然后選中"bigPlatform 1",最后點(diǎn)擊"Add Selected Meshes To Target".操作完成后關(guān)閉該彈窗
④選中Hierarchy面板中的"MeshBaker",將"Lightmapping UVs"設(shè)置為"Generate_new_UV2_layout"
⑤選中Hierarchy面板中的"TextureBaker (0)",然后依次點(diǎn)擊"Create Empty Assets For Combined Material","Bake Material Into Combined Material","Bake All Child MeshBakers"
總結(jié)
以上是生活随笔為你收集整理的U3D性能优化之MeshBaker(带光照)的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python计算圆环的面积_巧用转化 计
- 下一篇: jmp指令流程图怎么写_策划新人分享——