|
8 | 8 | <input name="specular_anisotropy" type="float" value="0.0" /> |
9 | 9 | <input name="specular_rotation" type="float" value="0.0" /> |
10 | 10 | <input name="specular_roughness" type="float" value="0.2" /> |
| 11 | + <input name="specular_IOR" type="float" value="1.5" /> |
11 | 12 | <input name="transmission" type="float" value="0" /> |
12 | 13 | <input name="transmission_color" type="color3" value="1, 1, 1" /> |
13 | 14 | <input name="transmission_depth" type="float" value="0" /> |
|
19 | 20 | <input name="coat_roughness" type="float" value="0.1" /> |
20 | 21 | <input name="emission" type="float" value="0" /> |
21 | 22 | <input name="emission_color" type="color3" value="1, 1, 1" /> |
| 23 | + <input name="normal" type="vector3" defaultgeomprop="Nworld" /> |
| 24 | + <input name="tangent" type="vector3" defaultgeomprop="Tworld" /> |
| 25 | + <input name="opacity" type="color3" value="1, 1, 1" /> |
22 | 26 |
|
23 | 27 | <output name="base_color_out" type="color3" /> |
24 | 28 | <output name="metallic_out" type="float" /> |
25 | 29 | <output name="roughness_out" type="float" /> |
| 30 | + <output name="ior_out" type="float" /> |
26 | 31 | <output name="anisotropy_strength_out" type="float" /> |
27 | 32 | <output name="anisotropy_rotation_out" type="float" /> |
28 | 33 | <output name="transmission_out" type="float" /> |
|
33 | 38 | <output name="clearcoat_out" type="float" /> |
34 | 39 | <output name="clearcoat_roughness_out" type="float" /> |
35 | 40 | <output name="emissive_out" type="color3" /> |
| 41 | + <output name="emissive_strength_out" type="float" /> |
| 42 | + <output name="normal_out" type="vector3" /> |
| 43 | + <output name="tangent_out" type="vector3" /> |
| 44 | + <output name="alpha_out" type="float" /> |
| 45 | + <output name="alpha_mode_out" type="integer" /> |
36 | 46 | </nodedef> |
37 | 47 |
|
38 | 48 | <nodegraph name="NG_standard_surface_to_gltf_pbr" nodedef="ND_standard_surface_to_gltf_pbr"> |
|
186 | 196 | </dot> |
187 | 197 |
|
188 | 198 | <!-- Emission --> |
189 | | - <multiply name="emissive" type="color3"> |
190 | | - <input name="in1" type="color3" interfacename="emission_color" /> |
191 | | - <input name="in2" type="float" interfacename="emission" /> |
192 | | - </multiply> |
| 199 | + <dot name="emissive" type="color3"> |
| 200 | + <input name="in" type="color3" interfacename="emission_color" /> |
| 201 | + </dot> |
| 202 | + <dot name="emissive_strength" type="float"> |
| 203 | + <input name="in" type="float" interfacename="emission" /> |
| 204 | + </dot> |
| 205 | + |
| 206 | + <!-- Specular Index of Refraction --> |
| 207 | + <dot name="ior" type="float"> |
| 208 | + <input name="in" type="float" interfacename="specular_IOR" /> |
| 209 | + </dot> |
| 210 | + |
| 211 | + <!-- Geometry --> |
| 212 | + <dot name="normal" type="vector3"> |
| 213 | + <input name="in" type="vector3" interfacename="normal" /> |
| 214 | + </dot> |
| 215 | + <dot name="tangent" type="vector3"> |
| 216 | + <input name="in" type="vector3" interfacename="tangent" /> |
| 217 | + </dot> |
| 218 | + |
| 219 | + <!-- Opacity --> |
| 220 | + <luminance name="opacity_luminance" type="color3"> |
| 221 | + <input name="in" type="color3" interfacename="opacity" /> |
| 222 | + </luminance> |
| 223 | + |
| 224 | + <extract name="opacity_luminance_float" type="float"> |
| 225 | + <input name="in" type="color3" nodename="opacity_luminance" /> |
| 226 | + <input name="index" type="integer" value="0" /> |
| 227 | + </extract> |
| 228 | + |
| 229 | + <ifequal name="alpha_mode_from_opacity_luminance" type="integer"> |
| 230 | + <input name="value1" type="float" nodename="opacity_luminance_float" /> |
| 231 | + <input name="value2" type="float" value="1.0" /> |
| 232 | + <input name="in1" type="integer" value="0" /> |
| 233 | + <input name="in2" type="integer" value="2" /> |
| 234 | + </ifequal> |
193 | 235 |
|
194 | 236 | <output name="base_color_out" type="color3" nodename="base_color" /> |
195 | 237 | <output name="metallic_out" type="float" nodename="metallic" /> |
196 | 238 | <output name="roughness_out" type="float" nodename="roughness" /> |
| 239 | + <output name="ior_out" type="float" nodename="ior" /> |
197 | 240 | <output name="anisotropy_strength_out" type="float" nodename="anisotropy_strength" /> |
198 | 241 | <output name="anisotropy_rotation_out" type="float" nodename="anisotropy_rotation" /> |
199 | 242 | <output name="transmission_out" type="float" nodename="transmission" /> |
|
204 | 247 | <output name="clearcoat_out" type="float" nodename="clearcoat" /> |
205 | 248 | <output name="clearcoat_roughness_out" type="float" nodename="clearcoat_roughness" /> |
206 | 249 | <output name="emissive_out" type="color3" nodename="emissive" /> |
| 250 | + <output name="emissive_strength_out" type="float" nodename="emissive_strength" /> |
| 251 | + <output name="normal_out" type="vector3" nodename="normal" /> |
| 252 | + <output name="tangent_out" type="vector3" nodename="tangent" /> |
| 253 | + <output name="alpha_out" type="float" nodename="opacity_luminance_float" /> |
| 254 | + <output name="alpha_mode_out" type="integer" nodename="alpha_mode_from_opacity_luminance" /> |
207 | 255 |
|
208 | 256 | </nodegraph> |
209 | 257 | </materialx> |
0 commit comments