Disc.hx 385 B

1234567891011121314151617
  1. package hrt.texgraph.nodes;
  2. @name("Disc")
  3. @description("Basic disc texture")
  4. @width(80)
  5. @group("Texture generation")
  6. class Disc extends TexNode {
  7. var inputs = [];
  8. var outputs = [
  9. { name : "output", type: h3d.mat.Texture }
  10. ];
  11. override function apply(vars : Dynamic) : Array<h3d.mat.Texture> {
  12. var out = h3d.mat.Texture.genDisc(outputWidth, 16777215, 1);
  13. return [ out ];
  14. }
  15. }