particle hit effect
This commit is contained in:
1 parent
2b875dfc2d
commit
6bd38df453
13 files changed
+427
-18
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
precision mediump float;
|
||||
uniform sampler2D Texture;
|
||||
uniform float Transparency;
|
||||
uniform vec4 BrickColor;
|
||||
varying vec2 texCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 color = BrickColor * texture2D(Texture,texCoord).rgba;
|
||||
|
||||
gl_FragColor = vec4(color.rgb, color.a * Transparency);
|
||||
|
||||
|
||||
|
||||
}
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
attribute vec3 vPosition;
|
||||
attribute vec2 vTexCoord;
|
||||
varying vec2 texCoord;
|
||||
|
||||
uniform mat4 ProjectionMatrix;
|
||||
|
||||
void main()
|
||||
{
|
||||
//480x320
|
||||
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||||
texCoord = vTexCoord;
|
||||
}
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
precision mediump float;
|
||||
uniform sampler2D Texture;
|
||||
uniform float Brightness;
|
||||
varying vec2 texCoord;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec3 color = texture2D(Texture,texCoord).rgb;
|
||||
|
||||
gl_FragColor = vec4(color * Brightness, 1.0);
|
||||
|
||||
}
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
attribute vec3 vPosition;
|
||||
attribute vec2 vTexCoord;
|
||||
varying vec2 texCoord;
|
||||
|
||||
uniform mat4 ProjectionMatrix;
|
||||
|
||||
void main()
|
||||
{
|
||||
//480x320
|
||||
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||||
texCoord = vTexCoord;
|
||||
}
|
||||
Reference in new issue
Block a user