heighttonormal_normal_input.mtlx 1.0 KB

123456789101112131415161718192021
  1. <?xml version="1.0"?>
  2. <materialx version="1.39">
  3. <surfacematerial name="mat_heighttonormal_normal" type="material" nodedef="ND_surfacematerial">
  4. <input name="surfaceshader" type="surfaceshader" nodename="surface_shader1" />
  5. </surfacematerial>
  6. <standard_surface name="surface_shader1" type="surfaceshader" nodedef="ND_standard_surface_surfaceshader">
  7. <input name="base_color" type="color3" value="0.8, 0.8, 0.8" />
  8. <input name="normal" type="vector3" output="out" nodegraph="height_to_normal_normal" />
  9. </standard_surface>
  10. <nodegraph name="height_to_normal_normal">
  11. <image name="height_image" type="float">
  12. <input name="file" type="filename" value="resources/Images/grid.png" />
  13. <input name="default" type="float" value="0.5" />
  14. </image>
  15. <heighttonormal name="height_to_normal" type="vector3">
  16. <input name="in" type="float" nodename="height_image" />
  17. <input name="scale" type="float" value="2.0" />
  18. </heighttonormal>
  19. <output name="out" type="vector3" nodename="height_to_normal" />
  20. </nodegraph>
  21. </materialx>
粤ICP备19079148号