Dot.hx 371 B

123456789101112131415161718192021
  1. package hrt.shgraph.nodes;
  2. using hxsl.Ast;
  3. @name("Dot")
  4. @description("The output is the dot product of a and b")
  5. @width(80)
  6. @group("Math")
  7. class Dot extends ShaderFunction {
  8. @input("A") var a = SType.Number;
  9. @input("B") var b = SType.Number;
  10. public function new() {
  11. super(Dot);
  12. }
  13. override public function computeOutputs() {
  14. addOutput("output", TFloat);
  15. }
  16. }