Log.hx 312 B

12345678910111213141516171819
  1. package hrt.shgraph.nodes;
  2. using hxsl.Ast;
  3. @name("Log")
  4. @description("The output is the result of log(x)")
  5. @width(80)
  6. @group("Math")
  7. class Log extends ShaderNodeHxsl {
  8. static var SRC = {
  9. @sginput(0.0) var a : Dynamic;
  10. @sgoutput var output : Dynamic;
  11. function fragment() {
  12. output = log(a);
  13. }
  14. };
  15. }