Browse Source

Add missing file

ShiroSmith 6 years ago
parent
commit
4b49e270f5
1 changed files with 20 additions and 0 deletions
  1. 20 0
      h3d/shader/Emissive.hx

+ 20 - 0
h3d/shader/Emissive.hx

@@ -0,0 +1,20 @@
+package h3d.shader;
+
+class Emissive extends hxsl.Shader {
+
+	static var SRC = {
+		var pixelColor : Vec4;
+		@param var emissive : Float;
+
+		function fragment() {
+			pixelColor.rgb += pixelColor.rgb * emissive * pixelColor.a;
+		}
+
+	};
+
+	public function new( emissive : Float = 0 ) {
+		super();
+		this.emissive = emissive;
+	}
+
+}