-
Notifications
You must be signed in to change notification settings - Fork 365
/
Copy pathnormalmapped_surfaceshader.mtlx
28 lines (28 loc) · 1.45 KB
/
normalmapped_surfaceshader.mtlx
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
<?xml version="1.0"?>
<materialx version="1.38">
<standard_surface name="NormalMappedShader" type="surfaceshader">
<input name="base" type="float" value="0.6" />
<input name="metalness" type="float" value="1.0" />
<input name="specular" type="float" value="0.7" />
<input name="coat" type="float" value="1" />
<input name="normal" type="vector3" nodegraph="NormalMapGraph" />
</standard_surface>
<surfacematerial name="NormalMappedShaderMaterial" type="material">
<input name="surfaceshader" type="surfaceshader" nodename="NormalMappedShader" />
<input name="displacementshader" type="displacementshader" value="" />
</surfacematerial>
<nodegraph name="NormalMapGraph">
<normalmap name="normalmap" type="vector3">
<input name="in" type="vector3" nodename="tiledimage" />
<input name="scale" type="float" value="1.1" />
<input name="space" type="string" value="tangent" />
</normalmap>
<tiledimage name="tiledimage" type="vector3">
<input name="file" type="filename" value="resources/images/mesh_wire_norm.png" />
<input name="realworldimagesize" type="vector2" value="1.0, 2.0" unit="centimeter" unittype="distance" />
<input name="realworldtilesize" type="vector2" value="3.0, 2.0" unit="centimeter" unittype="distance" />
<input name="uvtiling" type="vector2" value="12, 10" />
</tiledimage>
<output name="normal" type="vector3" nodename="normalmap" />
</nodegraph>
</materialx>