File size: 9,217 Bytes
ae81f33 |
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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
/*****************************************************************************
* Copyright 2024 NVIDIA Corporation. All rights reserved.
******************************************************************************
MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,
WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA
CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
THE USE OR INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN
THE MDL MATERIALS.
*/
mdl 1.4;
import ::anno::*;
import ::nvidia::core_definitions::flex_material_v2;
import ::state::normal;
const string COPYRIGHT =
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
export material Mirror(
color base_color = color ( 0.7969177f, 0.7969177f, 0.7969177f )
[[
::anno::display_name("Color"),
::anno::description("Choose the color of the mirror."),
::anno::in_group("Appearance")
]],
float reflection_weight = 1.f
[[
::anno::display_name("Reflection Weight"),
::anno::description("Amount of reflection, higher numbers provide more reflection."),
::anno::hard_range(0.0,1.0),
::anno::in_group("Appearance")
]])
[[
::anno::display_name("Mirror - No Tint"),
::anno::description("A plain and simple mirror material"),
::anno::author("NVIDIA vMaterials"),
::anno::key_words(string[]("aec", "glass", "mirror", "architecture", "bathroom", "reflective")),
::anno::thumbnail("./.thumbs/Mirror.Mirror.png"),
::anno::copyright_notice(COPYRIGHT)
]]=
::nvidia::core_definitions::flex_material_v2(
base_color: base_color,
diffuse_roughness: 0.f,
is_metal: true,
reflectivity: reflection_weight,
reflection_roughness: 0.f,
anisotropy: 0.f,
anisotropy_rotation: 0.f,
transparency: 0.f,
transmission_color: color ( 1.f , 1.f , 1.f),
volume_color: color ( 1.f , 1.f , 1.f),
transmission_roughness: 0.f,
base_thickness: 0.1f,
ior: 1.5f,
thin_walled: false,
normal: ::state::normal ());
export material Mirror_Warm_Tint(
color base_color = color ( 0.8122431f, 0.708298f, 0.5989411f )
[[
::anno::display_name("Color"),
::anno::description("Choose the color of the mirror."),
::anno::in_group("Appearance")
]],
float reflection_weight = 1.f
[[
::anno::display_name("Reflection Weight"),
::anno::description("Amount of reflection, higher numbers provide more reflection."),
::anno::hard_range(0.0,1.0),
::anno::in_group("Appearance")
]])
[[
::anno::display_name("Mirror - Warm Tint"),
::anno::description("A plain and simple mirror material with a warm golden tint"),
::anno::author("NVIDIA vMaterials"),
::anno::key_words(string[]("aec", "glass", "mirror", "architecture", "bathroom", "reflective", "tint", "tinted", "warm", "gold")),
::anno::thumbnail("./.thumbs/Mirror.mirror_warm_tint.png"),
::anno::copyright_notice(COPYRIGHT)
]]=
::nvidia::core_definitions::flex_material_v2(
base_color: base_color,
diffuse_roughness: 0.f,
is_metal: true,
reflectivity: reflection_weight,
reflection_roughness: 0.f,
anisotropy: 0.f,
anisotropy_rotation: 0.f,
transparency: 0.f,
transmission_color: color ( 1.f , 1.f , 1.f),
volume_color: color ( 1.f , 1.f , 1.f),
transmission_roughness: 0.f,
base_thickness: 0.1f,
ior: 1.5f,
thin_walled: false,
normal: ::state::normal ());
export material Mirror_Cool_Tint(
color base_color = color ( 0.3736157f, 0.5356432f, 0.5795451f)
[[
::anno::display_name("Color"),
::anno::description("Choose the color of the mirror."),
::anno::in_group("Appearance")
]],
float reflection_weight = 1.f
[[
::anno::display_name("Reflection Weight"),
::anno::description("Amount of reflection, higher numbers provide more reflection."),
::anno::hard_range(0.0,1.0),
::anno::in_group("Appearance")
]])
[[
::anno::display_name("Mirror - Cool Tint"),
::anno::description("A plain and simple mirror material with a cool blue tint"),
::anno::author("NVIDIA vMaterials"),
::anno::key_words(string[]("aec", "glass", "mirror", "architecture", "bathroom", "reflective", "tint", "tinted", "cool", "blue")),
::anno::thumbnail("./.thumbs/Mirror.mirror_cool_tint.png"),
::anno::copyright_notice(COPYRIGHT)
]]=
::nvidia::core_definitions::flex_material_v2(
base_color: base_color,
diffuse_roughness: 0.f,
is_metal: true,
reflectivity: reflection_weight,
reflection_roughness: 0.f,
anisotropy: 0.f,
anisotropy_rotation: 0.f,
transparency: 0.f,
transmission_color: color ( 1.f , 1.f , 1.f),
volume_color: color ( 1.f , 1.f , 1.f),
transmission_roughness: 0.f,
base_thickness: 0.1f,
ior: 1.5f,
thin_walled: false,
normal: ::state::normal ());
export material Mirror_Smoked_Light(
color base_color = color ( 0.4045412f, 0.4045412f, 0.4045412f )
[[
::anno::display_name("Color"),
::anno::description("Choose the color of the mirror."),
::anno::in_group("Appearance")
]],
float reflection_weight = 1.f
[[
::anno::display_name("Reflection Weight"),
::anno::description("Amount of reflection, higher numbers provide more reflection."),
::anno::hard_range(0.0,1.0),
::anno::in_group("Appearance")
]])
[[
::anno::display_name("Mirror - Smoked Light"),
::anno::description("A plain and simple mirror material with a light smoked reflection property"),
::anno::author("NVIDIA vMaterials"),
::anno::key_words(string[]("aec", "glass", "mirror", "architecture", "bathroom", "reflective", "tint", "tinted", "smoked", "light")),
::anno::thumbnail("./.thumbs/Mirror.mirror_smoked_light.png"),
::anno::copyright_notice(COPYRIGHT)
]]=
::nvidia::core_definitions::flex_material_v2(
base_color: base_color,
diffuse_roughness: 0.f,
is_metal: true,
reflectivity: reflection_weight,
reflection_roughness: 0.f,
anisotropy: 0.f,
anisotropy_rotation: 0.f,
transparency: 0.f,
transmission_color: color ( 1.f , 1.f , 1.f),
volume_color: color ( 1.f , 1.f , 1.f),
transmission_roughness: 0.f,
base_thickness: 0.1f,
ior: 1.5f,
thin_walled: false,
normal: ::state::normal ());
export material Mirror_Smoked_Dark(
color base_color = color ( 0.1419804f, 0.1419804f, 0.1419804f )
[[
::anno::display_name("Color"),
::anno::description("Choose the color of the mirror."),
::anno::in_group("Appearance")
]],
float reflection_weight = 1.f
[[
::anno::display_name("Reflection Weight"),
::anno::description("Amount of reflection, higher numbers provide more reflection."),
::anno::hard_range(0.0,1.0),
::anno::in_group("Appearance")
]])
[[
::anno::display_name("Mirror - Smoked Dark"),
::anno::description("A plain and simple mirror material with a heavy smoked reflection property"),
::anno::author("NVIDIA vMaterials"),
::anno::key_words(string[]("aec", "glass", "mirror", "architecture", "bathroom", "reflective", "tint", "tinted", "smoked", "dark")),
::anno::thumbnail("./.thumbs/Mirror.mirror_smoked_dark.png"),
::anno::copyright_notice(COPYRIGHT)
]]=
::nvidia::core_definitions::flex_material_v2(
base_color: base_color,
diffuse_roughness: 0.f,
is_metal: true,
reflectivity: reflection_weight,
reflection_roughness: 0.f,
anisotropy: 0.f,
anisotropy_rotation: 0.f,
transparency: 0.f,
transmission_color: color ( 1.f , 1.f , 1.f),
volume_color: color ( 1.f , 1.f , 1.f),
transmission_roughness: 0.f,
base_thickness: 0.1f,
ior: 1.5f,
thin_walled: false,
normal: ::state::normal ());
|