heightnormal.mtlx 1.1 KB

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