/// <summary> /// 添加光照图 /// </summary> /// <param name="name"></param> /// <param name="lightMapIndex"></param> /// <param name="isColor"></param> public void AddLightMap(string name, int lightMapIndex, bool isColor) { var lightMap = new ResDescLightMap(); lightMap.name = name; lightMap.renderer = null; lightMap.lightMapIndex = lightMapIndex; lightMap.lightmapScaleOffset = Vector4.zero; lightMap.isColor = isColor; _lightMaps.Add(lightMap); }
/// <summary> /// 添加光照图 /// </summary> /// <param name="name"></param> /// <param name="renderer"></param> /// <param name="isColor"></param> public void AddLightMap(string name, Renderer renderer, bool isColor) { var lightMap = new ResDescLightMap(); lightMap.name = name; lightMap.renderer = renderer; lightMap.lightMapIndex = renderer.lightmapIndex; lightMap.lightmapScaleOffset = renderer.lightmapScaleOffset; lightMap.isColor = isColor; _lightMaps.Add(lightMap); }