A simple wrapper around the NVIDIA OMM SDK to bake, save, and load opacity micromaps for raytracing.
Supported platforms:
- Windows (x64)
- Linux (x64)
open Aardvark.OMM
open Aardvark.Base
open Aardvark.Rendering.Raytracing
let alphaMask = PixImage.Load("mask.png")
let indices = [| ... |]
let textureCoords = [| ... |]
let input =
{ Indices = indices
TextureCoords = textureCoords
AlphaTexture = AlphaPixImage(alphaMask)
AlphaSampler = AlphaSampler.Default }
let settings =
{ BakeSettings.Default with
... }
use baker = new Baker()
use result = baker.Bake(input, settings)
Micromap(result.Data)