Shader Lod (Level of Detail) 1. 在Shader 有SubShader : 這里面可以設(shè)置LOD ,但凡小于L0D后面的值的SubShader都可以被執(zhí)行。這個(gè)LOD參數(shù)可以設(shè)置 對(duì)應(yīng)的腳本:
using UnityEngine;using System.Collections;public class LodTest : MonoBehaviour { void Start () { SetShaderLod(300); } public void SetShaderLod(int num) { Shader.globalMaximumLOD = num; } void Update () { }}針對(duì)一些設(shè)備支持很多功能,但是卻執(zhí)行效率不是很高。可以用LOD設(shè)置配合。 官方給的一些LOD值如下: VertexLit kind of shaders = 100 Decal, Reflective VertexLit = 150 Diffuse = 200 Diffuse Detail, Reflective Bumped Unlit, Reflective Bumped VertexLit = 250 Bumped, Specular = 300 Bumped Specular = 400 Parallax = 500 Parallax Specular = 600
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注