reworked lighting uniforms
[carveJwlIkooP6JGAAIwe30JlM.git] / shaders / vg / character.fs.glsl
diff --git a/shaders/vg/character.fs.glsl b/shaders/vg/character.fs.glsl
new file mode 100644 (file)
index 0000000..d3c2bea
--- /dev/null
@@ -0,0 +1,16 @@
+out vec4 FragColor;
+
+uniform sampler2D uTexMain;
+uniform vec4 uColour;
+
+in vec4 aColour;
+in vec2 aUv;
+in vec3 aNorm;
+in vec3 aCo;
+in float aOpacity;
+
+void main()
+{
+   vec3 diffuse = texture( uTexMain, aUv ).rgb;
+   FragColor = vec4(pow(diffuse,vec3(1.0)),aOpacity);
+}