本帖最后由 黑猩猩战士 于 2023-11-23 09:12 编辑
024编辑器更新增加了环境雾对象,那么我们的旧工程如何添加环境雾功能呢。很简单只需要简单修改工程下的level文件就行了。在level文件中找到BP_DirectionalLight对象,在下方添加环境雾对象:
{ "ActorLevel": -1, "ActorFlag": 4, "SourceType": "逻辑资源/Pak_Actor/BP_MWSysExponentialHeightFog", "PrefabStatus": 0, "Name": "Fog", "Guid": "22F16EC4", "MWStaticStatus": false, "MWNetStatus": 1, "Tag": "", "DestroyTimer": 0, "Asset": "Fog", "RootComponent": { "Transform": { "Position": { "X": 0, "Y": 0, "Z": 1000 }, "Rotation": { "X": 0, "Y": 0, "Z": 0, "W": 1 }, "Scale": { "X": 1, "Y": 1, "Z": 1 }, "EulerRotation": { "X": 0, "Y": 0, "Z": 0 } }, "LocalTransform": { "Position": { "X": 0, "Y": 0, "Z": 1000 }, "Rotation": { "X": 0, "Y": 0, "Z": 0, "W": 1 }, "Scale": { "X": 1, "Y": 1, "Z": 1 }, "EulerRotation": { "X": 0, "Y": 0, "Z": 0 } } }, "NetCullingDistance": 225000000, "bAlwaysRelevant": false, "ParentGuid": "", "Visible": 0, "Collision": 0, "LoadFromLevel": true, "Script": { "ScriptComponent": {}, "StaticScriptComponent": {} }, "ExponentialHeightFogEnable": false, "ExponentialHeightFogPreset": 0, "ExponentialHeightFogDensity": 0.10000000149011612, "ExponentialHeightFogHeightFalloff": 1, "ExponentialHeightFogHeight": 1000, "ExponentialHeightFogInscatteringColor": { "R": 0.76078397035598755, "G": 0.80000001192092896, "B": 0.82352900505065918, "A": 1 }, "ExponentialHeightFogMaxOpacity": 1, "ExponentialHeightFogStartDistance": 1000, "FogDirectionalInscatteringExponent": 4, "FogDirectionalInscatteringStartDistance": 10000, "FogDirectionalInscatteringColor": { "R": 0, "G": 0, "B": 0, "A": 1 }, "Children": []},
|
|