FrontFacing.hx 305 B

1234567891011121314151617
  1. package hrt.shgraph.nodes;
  2. using hxsl.Ast;
  3. @name("Front facing")
  4. @description("Tells if pixel is front or back facing")
  5. @width(80)
  6. @group("Property")
  7. class FrontFacing extends ShaderNodeHxsl {
  8. static var SRC = {
  9. @sgoutput var output : Bool;
  10. function fragment() {
  11. output = frontFacing;
  12. }
  13. };
  14. }