rotate2d_test.mtlx 1.2 KB

1234567891011121314151617181920212223
  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. <input name="pivot" type="vector2" value="0.5, 0.5" />
  15. </rotate2d>
  16. <image name="rotated_image" type="color3">
  17. <input name="file" type="filename" value="resources/Images/grid.png" />
  18. <input name="default" type="color3" value="0.5, 0.5, 0.5" />
  19. <input name="texcoord" type="vector2" nodename="rotate2d_1" />
  20. </image>
  21. <output name="out" type="color3" nodename="rotated_image" />
  22. </nodegraph>
  23. </materialx>
粤ICP备19079148号