standard_surface_rotate2d_test.mtlx 1.1 KB

12345678910111213141516171819202122
  1. <?xml version="1.0"?>
  2. <materialx version="1.39">
  3. <surfacematerial name="mat_rotate2d_test" 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" output="out" nodegraph="rotate2d_test" />
  8. </standard_surface>
  9. <nodegraph name="rotate2d_test">
  10. <texcoord name="texcoord1" type="vector2" />
  11. <rotate2d name="rotate2d_1" type="vector2">
  12. <input name="in" type="vector2" nodename="texcoord1" />
  13. <input name="amount" type="float" value="45.0" unittype="angle" unit="degree" />
  14. </rotate2d>
  15. <image name="rotated_image" type="color3">
  16. <input name="file" type="filename" value="resources/Images/grid.png" />
  17. <input name="default" type="color3" value="0.5, 0.5, 0.5" />
  18. <input name="texcoord" type="vector2" nodename="rotate2d_1" />
  19. </image>
  20. <output name="out" type="color3" nodename="rotated_image" />
  21. </nodegraph>
  22. </materialx>
粤ICP备19079148号