|
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" /> |
22 | 25 |
|
23 | 26 | <output name="base_color_out" type="color3" /> |
24 | 27 | <output name="metallic_out" type="float" /> |
25 | 28 | <output name="roughness_out" type="float" /> |
| 29 | + <output name="ior_out" type="float" /> |
26 | 30 | <output name="anisotropy_strength_out" type="float" /> |
27 | 31 | <output name="anisotropy_rotation_out" type="float" /> |
28 | 32 | <output name="transmission_out" type="float" /> |
|
33 | 37 | <output name="clearcoat_out" type="float" /> |
34 | 38 | <output name="clearcoat_roughness_out" type="float" /> |
35 | 39 | <output name="emissive_out" type="color3" /> |
| 40 | + <output name="emissive_strength_out" type="float" /> |
| 41 | + <output name="normal_out" type="vector3" /> |
| 42 | + <output name="tangent_out" type="vector3" /> |
36 | 43 | </nodedef> |
37 | 44 |
|
38 | 45 | <nodegraph name="NG_standard_surface_to_gltf_pbr" nodedef="ND_standard_surface_to_gltf_pbr"> |
|
186 | 193 | </dot> |
187 | 194 |
|
188 | 195 | <!-- 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> |
| 196 | + <dot name="emissive" type="color3"> |
| 197 | + <input name="in" type="color3" interfacename="emission_color" /> |
| 198 | + </dot> |
| 199 | + <dot name="emissive_strength" type="float"> |
| 200 | + <input name="in" type="float" interfacename="emission" /> |
| 201 | + </dot> |
| 202 | + |
| 203 | + <!-- Specular Index of Refraction --> |
| 204 | + <dot name="ior" type="float"> |
| 205 | + <input name="in" type="float" interfacename="specular_IOR" /> |
| 206 | + </dot> |
| 207 | + |
| 208 | + <!-- Geometry --> |
| 209 | + <dot name="normal" type="vector3"> |
| 210 | + <input name="in" type="vector3" interfacename="normal" /> |
| 211 | + </dot> |
| 212 | + <dot name="tangent" type="vector3"> |
| 213 | + <input name="in" type="vector3" interfacename="tangent" /> |
| 214 | + </dot> |
193 | 215 |
|
194 | 216 | <output name="base_color_out" type="color3" nodename="base_color" /> |
195 | 217 | <output name="metallic_out" type="float" nodename="metallic" /> |
196 | 218 | <output name="roughness_out" type="float" nodename="roughness" /> |
| 219 | + <output name="ior_out" type="float" nodename="ior" /> |
197 | 220 | <output name="anisotropy_strength_out" type="float" nodename="anisotropy_strength" /> |
198 | 221 | <output name="anisotropy_rotation_out" type="float" nodename="anisotropy_rotation" /> |
199 | 222 | <output name="transmission_out" type="float" nodename="transmission" /> |
|
204 | 227 | <output name="clearcoat_out" type="float" nodename="clearcoat" /> |
205 | 228 | <output name="clearcoat_roughness_out" type="float" nodename="clearcoat_roughness" /> |
206 | 229 | <output name="emissive_out" type="color3" nodename="emissive" /> |
| 230 | + <output name="emissive_strength_out" type="float" nodename="emissive_strength" /> |
| 231 | + <output name="normal_out" type="vector3" nodename="normal" /> |
| 232 | + <output name="tangent_out" type="vector3" nodename="tangent" /> |
207 | 233 |
|
208 | 234 | </nodegraph> |
209 | 235 | </materialx> |
0 commit comments