 |
CubeMapLoaderLoadCubeMap(String, String, String, String, String, String, VulkanDevice, IBitmapIO, String) Method |
Load cube map from 6 per-face images, as generated by the CMFT (cubemap filtering tool):
cmft --input papermill.hdr --filter none --outputNum 1 --output0params tga,bgr8,facelist --output0 papermill
(and then converted from TGA to PNG format).
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic static GpuImage LoadCubeMap(
string imageFilePosX,
string imageFileNegX,
string imageFilePosY,
string imageFileNegY,
string imageFilePosZ,
string imageFileNegZ,
VulkanDevice gpuDevice,
IBitmapIO? bitmapIO = null,
string? name = null
)
Parameters
- imageFilePosX String
- Image file for face with index 0 (+X).
- imageFileNegX String
- Image file for face with index 1 (-X).
- imageFilePosY String
- Image file for face with index 2 (+Y).
- imageFileNegY String
- Image file for face with index 3 (-Y).
- imageFilePosZ String
- Image file for face with index 4 (+Z).
- imageFileNegZ String
- Image file for face with index 5 (-Z).
- gpuDevice VulkanDevice
- Vulkan device.
- bitmapIO IBitmapIO (Optional)
- Optional image reader used to load the images.
- name String (Optional)
- Optional name for created GpuImage instance
Return Value
GpuImageA new GpuImage instance that contains cube map data.
See Also