| 131 | } |
| 132 | |
| 133 | void Generate() |
| 134 | { |
| 135 | Guid id = Guid::Empty; |
| 136 | ImportTexture::Options options; |
| 137 | options.Type = TextureFormatType::HdrRGB; |
| 138 | options.InternalFormat = PixelFormat::R16G16_UNorm; |
| 139 | options.IndependentChannels = true; |
| 140 | options.IsAtlas = false; |
| 141 | options.sRGB = false; |
| 142 | options.NeverStream = true; |
| 143 | options.GenerateMipMaps = false; |
| 144 | options.Compress = false; |
| 145 | options.InternalLoad.Bind(&OnGenerate); |
| 146 | const String path = Globals::EngineContentFolder / PRE_INTEGRATED_GF_ASSET_NAME + ASSET_FILES_EXTENSION_WITH_DOT; |
| 147 | AssetsImportingManager::Create(AssetsImportingManager::CreateTextureTag, path, id, &options); |
| 148 | } |
| 149 | }; |
| 150 | |
| 151 | #endif |