mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-14 06:50:19 -05:00
ExportMetallicSmoothnessOcclusion_Test
This commit is contained in:
@@ -50,5 +50,18 @@ namespace UniGLTF
|
||||
var (bytes, mime) = GltfTextureExporter.GetBytesWithMime(readonlyTexture);
|
||||
Assert.NotNull(bytes);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ExportMetallicSmoothnessOcclusion_Test()
|
||||
{
|
||||
var exporter = new TextureExporter();
|
||||
var metallic = new Texture2D(4, 4, TextureFormat.ARGB32, false, true);
|
||||
var occlusion = new Texture2D(4, 4, TextureFormat.ARGB32, false, true);
|
||||
|
||||
Assert.AreEqual(-1, exporter.ExportMetallicSmoothnessOcclusion(null, 0, null));
|
||||
Assert.AreEqual(0, exporter.ExportMetallicSmoothnessOcclusion(null, 0, occlusion));
|
||||
Assert.AreEqual(0, exporter.ExportMetallicSmoothnessOcclusion(metallic, 0, null));
|
||||
Assert.AreEqual(0, exporter.ExportMetallicSmoothnessOcclusion(metallic, 0, occlusion));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user