image_transform.mtlx 1.3 KB

1234567891011121314151617181920212223242526
  1. <?xml version="1.0"?>
  2. <materialx version="1.39">
  3. <surfacematerial name="mat_image_transform" 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="test_place2d_SRT" />
  8. </standard_surface>
  9. <nodegraph name="test_place2d_SRT">
  10. <texcoord name="texcoord1" type="vector2" />
  11. <place2d name="a_place2d" type="vector2">
  12. <input name="texcoord" type="vector2" nodename="texcoord1" />
  13. <input name="offset" type="vector2" value="0.0, 0.0" />
  14. <input name="rotate" type="float" value="30.0" unittype="angle" unit="degree" />
  15. <input name="scale" type="vector2" value="2.0, 1.0" />
  16. <input name="pivot" type="vector2" value="0.5, 0.5" />
  17. <input name="operationorder" type="integer" value="0" />
  18. </place2d>
  19. <image name="image_number_1" type="color3">
  20. <input name="file" type="filename" value="resources/Images/grid.png" />
  21. <input name="default" type="color3" value="1.0, 0.0, 0.0" />
  22. <input name="texcoord" type="vector2" nodename="a_place2d" />
  23. </image>
  24. <output name="out" type="color3" nodename="image_number_1" />
  25. </nodegraph>
  26. </materialx>
粤ICP备19079148号