mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-13 03:44:05 +02:00
Clean up shader files
This commit is contained in:
@@ -1,12 +1,4 @@
|
|||||||
uniform sampler2D fireAlpha; // the texture with the scene you want to blur
|
uniform sampler2D fireAlpha;
|
||||||
//varying vec2 vTexCoord;
|
|
||||||
|
|
||||||
//precision mediump float;
|
|
||||||
//uniform sampler2D tex;
|
|
||||||
//varying float vAlpha;
|
|
||||||
|
|
||||||
in vec2 gl_PointCoord;
|
|
||||||
|
|
||||||
void main () {
|
void main () {
|
||||||
vec4 texColor = texture2D(fireAlpha, gl_PointCoord);
|
vec4 texColor = texture2D(fireAlpha, gl_PointCoord);
|
||||||
gl_FragColor = vec4(gl_Color.rgb, texColor.a*gl_Color.a);
|
gl_FragColor = vec4(gl_Color.rgb, texColor.a*gl_Color.a);
|
||||||
|
@@ -1,17 +1,5 @@
|
|||||||
varying vec2 vTexCoord;
|
|
||||||
|
|
||||||
// remember that you should draw a screen aligned quad
|
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
gl_Position = ftransform();;
|
gl_Position = ftransform();;
|
||||||
|
|
||||||
// Clean up inaccuracies
|
|
||||||
//vec2 Pos;
|
|
||||||
//Pos = sign(gl_Vertex.xy);
|
|
||||||
|
|
||||||
//gl_Position = vec4(Pos, 0.0, 1.0);
|
|
||||||
// Image-space
|
|
||||||
//vTexCoord = gl_Vertex.xy * 0.1;//Pos * 0.1;// + 0.5;
|
|
||||||
//gl_Position = gl_Vertex;
|
|
||||||
gl_FrontColor = gl_Color;
|
gl_FrontColor = gl_Color;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user