forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathstandard_surface_blackbody.mtlx
More file actions
23 lines (23 loc) · 1.31 KB
/
standard_surface_blackbody.mtlx
File metadata and controls
23 lines (23 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<materialx version="1.38" colorspace="lin_rec709">
<nodegraph name="NG_blackbody">
<input name="blackbody_temperature" type="float" value="5000.0" uimin="1500.0" uimax="25000.0" uistep="100.0" uiname="Blackbody Temperature Kelvin" />
<blackbody name="blackbody_color_out" type="color3">
<input name="temperature" type="float" interfacename="blackbody_temperature" uivisible="true"/>
</blackbody>
<output name="emission_color_output" type="color3" nodename="blackbody_color_out" />
</nodegraph>
<standard_surface name="SR_blackbody" type="surfaceshader">
<input name="base" type="float" value="0.0" />
<input name="base_color" type="color3" value="1.0, 1.0, 1.0" />
<input name="specular" type="float" value="0.0" />
<input name="specular_color" type="color3" value="1.0, 1.0, 1.0" />
<input name="specular_roughness" type="float" value="0" />
<input name="metalness" type="float" value="1" />
<input name="emission" type="float" value="1" />
<input name="emission_color" type="color3" nodegraph="NG_blackbody" output="emission_color_output" />
</standard_surface>
<surfacematerial name="Blackbody" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="SR_blackbody" />
</surfacematerial>
</materialx>