123456789101112131415161718192021 |
- package hrt.shgraph.nodes;
- using hxsl.Ast;
- @name("Dot")
- @description("The output is the dot product of a and b")
- @width(80)
- @group("Math")
- class Dot extends ShaderFunction {
- @input("A") var a = SType.Number;
- @input("B") var b = SType.Number;
- public function new() {
- super(Dot);
- }
- override public function computeOutputs() {
- addOutput("output", TFloat);
- }
- }
|