Version: 2020.3
public bool exportTrainingData ;

설명

Whether the Progressive Lightmapper exports machine learning training data to the Project folder when it performs the bake. ( Editor only).

When this is set to true, the Progressive Lightmapper exports separate data for direct lighting, indirect lighting, directionality, Ambient Occlusion, Texel Validity, normals, positions, albedo, emission, a coverage mask, and the final lightmap. This data is useful when training machine learning (ML) networks When this is set to false, the Progressive Lightmapper does not export this data.

The direct and indirect textures are exported before filtering, but after markup of invalid texels. The lightmap and directionality are exported after filtering and compositing. Ambient Occlusion exports with an exponent of 1. It does not take the indirect/direct exponent into account. To be able to export valid data for Directionality and Ambient Occlusion, they must first be enabled.

Normals and positions are exported in both object space (os) and world space (ws). Normals are normalized, positions are not. Some textures are marked as "supersampled". This means that the Editor exports the values without downsampling them, if they have a supersampling multiplier that is higher than 1.

All textures have the coverage mask as their alpha channel.

To change the name of the export folder, see trainingDataDestination.

See Also: Lighting Settings Asset, trainingDataDestination.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961