forked from KhronosGroup/ANARI-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
khr_volume_transfer_function1d.json
57 lines (56 loc) · 2.47 KB
/
khr_volume_transfer_function1d.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"info" : {
"name" : "KHR_VOLUME_TRANSFER_FUNCTION1D",
"type" : "extension",
"dependencies" : []
},
"objects" : [
{
"type" : "ANARI_VOLUME",
"name" : "transferFunction1D",
"description" : "transferFunction1D volume object",
"parameters" : [
{
"name" : "name",
"types" : ["ANARI_STRING"],
"tags" : [],
"description" : "optional object name"
}, {
"name" : "value",
"types" : ["ANARI_SPATIAL_FIELD"],
"tags" : ["required"],
"description" : "spatial field used for the field values of the volume"
}, {
"name" : "valueRange",
"types" : ["ANARI_FLOAT32_BOX1", "ANARI_FLOAT64_BOX1"],
"tags" : [],
"default" : [0.0, 1.0],
"description" : "sampled values of field are clamped to this range"
}, {
"name" : "color",
"types" : ["ANARI_FLOAT32_VEC4", "ANARI_FLOAT32_VEC3", "ANARI_ARRAY1D"],
"elementType" : [
"ANARI_UFIXED8", "ANARI_UFIXED8_VEC2", "ANARI_UFIXED8_VEC3", "ANARI_UFIXED8_VEC4",
"ANARI_UFIXED8_R_SRGB", "ANARI_UFIXED8_RA_SRGB", "ANARI_UFIXED8_RGB_SRGB", "ANARI_UFIXED8_RGBA_SRGB",
"ANARI_UFIXED16", "ANARI_UFIXED16_VEC2", "ANARI_UFIXED16_VEC3", "ANARI_UFIXED16_VEC4",
"ANARI_UFIXED32", "ANARI_UFIXED32_VEC2", "ANARI_UFIXED32_VEC3", "ANARI_UFIXED32_VEC4",
"ANARI_FLOAT32", "ANARI_FLOAT32_VEC2", "ANARI_FLOAT32_VEC3", "ANARI_FLOAT32_VEC4"],
"tags" : ["required"],
"description" : "sampled color"
}, {
"name" : "opacity",
"types" : ["ANARI_FLOAT32", "ANARI_ARRAY1D"],
"elementType" : ["ANARI_FLOAT32"],
"tags" : ["required"],
"description" : "sampled opacity"
}, {
"name" : "unitDistance",
"types" : ["ANARI_FLOAT32"],
"tags" : [],
"default" : 1,
"description" : "makes volumes uniformly thinner or thicker"
}
]
}
]
}