First result
This commit is contained in:
1 parent
9096f79f5a
commit
93e171ec5b
11 files changed
+276
-21
No files matched your search
Executable
+8
@@ -0,0 +1,8 @@
|
||||
precision mediump float;
|
||||
|
||||
uniform vec4 Color;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = Color;
|
||||
}
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
attribute vec3 vPosition;
|
||||
|
||||
uniform mat4 ProjectionMatrix;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||||
}
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
precision mediump float;
|
||||
|
||||
varying vec2 texCoord;
|
||||
|
||||
uniform sampler2D Texture;
|
||||
uniform vec4 Color;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = texture2D(Texture,texCoord) * Color;
|
||||
}
|
||||
Executable
+12
@@ -0,0 +1,12 @@
|
||||
attribute vec3 vPosition;
|
||||
attribute vec2 vTexCoord;
|
||||
|
||||
varying vec2 texCoord;
|
||||
|
||||
uniform mat4 ProjectionMatrix;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||||
texCoord = vTexCoord;
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
Executable
+100
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"name": "Sparkler - бенгальский огонь",
|
||||
|
||||
"emitters":
|
||||
[
|
||||
{
|
||||
"name": "Spark",
|
||||
|
||||
"maxParticles": 300,
|
||||
"preloading": 100,
|
||||
"texturePath": "spark.png",
|
||||
|
||||
"hasInertion": "false",
|
||||
"gravity": [0, -2, 0],
|
||||
|
||||
"spawnRange_system": "PARTICLE_BIRTH",
|
||||
|
||||
"spawnTotal":
|
||||
{
|
||||
"interpolation": "LINEAR_SPLINE",
|
||||
"isLooped": "false",
|
||||
"timeline":
|
||||
[
|
||||
{
|
||||
"t": 0.000,
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"t": 0.001,
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"t": 9.999,
|
||||
"value": 300
|
||||
},
|
||||
{
|
||||
"t": 10.000,
|
||||
"value": 300
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"spawnRange":
|
||||
{
|
||||
"value": [ 0, 0, 360, 180 ]
|
||||
},
|
||||
|
||||
"lifeTime":
|
||||
{
|
||||
"min": 0.100,
|
||||
"max": 1.000
|
||||
},
|
||||
|
||||
"coords_system": "PARTICLE_BIRTH",
|
||||
"coords_axis_system": "PARTICLE_EFFECT",
|
||||
"rotation_system": "PARTICLE_BIRTH",
|
||||
|
||||
"coords":
|
||||
{
|
||||
"interpolation": "CUBIC_SPLINE",
|
||||
"isLooped": "false",
|
||||
"timeline":
|
||||
[
|
||||
{
|
||||
"t": 0.000,
|
||||
"min": [ -1, -1, -1 ],
|
||||
"max": [ 1, 1, 1 ]
|
||||
},
|
||||
{
|
||||
"t": 1.000,
|
||||
"min": [ -2, -2, -2 ],
|
||||
"max": [ 2, 2, 2 ]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"rotation":
|
||||
{
|
||||
"value": [ 0, 0, 0 ]
|
||||
},
|
||||
|
||||
"scale":
|
||||
{
|
||||
"interpolation": "DISCRETE",
|
||||
"isLooped": "false",
|
||||
"timeline":
|
||||
[
|
||||
{
|
||||
"value": [ 5, 5 ]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"color":
|
||||
{
|
||||
"value": [ 1, 1, 0, 1 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Executable
+90
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"name": "Sparkler - бенгальский огонь",
|
||||
|
||||
"emitters":
|
||||
[
|
||||
{
|
||||
"name": "Spark",
|
||||
|
||||
"maxParticles": 300,
|
||||
"preloading": 100,
|
||||
"texturePath": "spark.png",
|
||||
|
||||
"hasInertion": "false",
|
||||
"gravity": [0, 0, 0],
|
||||
|
||||
"spawnRange_system": "PARTICLE_BIRTH",
|
||||
|
||||
"spawnTotal":
|
||||
{
|
||||
"interpolation": "LINEAR_SPLINE",
|
||||
"isLooped": "false",
|
||||
"timeline":
|
||||
[
|
||||
{
|
||||
"t": 0,
|
||||
"value": 0
|
||||
},
|
||||
{
|
||||
"t": 10,
|
||||
"value": 1000
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"spawnRange":
|
||||
{
|
||||
"value": [ 90, 0, 0, 360 ]
|
||||
},
|
||||
|
||||
"lifeTime":
|
||||
{
|
||||
"min": 0.1,
|
||||
"max": 0.3
|
||||
},
|
||||
|
||||
"coords_system": "PARTICLE_EFFECT",
|
||||
"coords_axis_system": "PARTICLE_BIRTH",
|
||||
"rotation_system": "PARTICLE_EFFECT",
|
||||
|
||||
"coords":
|
||||
{
|
||||
"interpolation": "LINEAR_SPLINE",
|
||||
"isLooped": "false",
|
||||
"timeline":
|
||||
[
|
||||
{
|
||||
"t": 0.000,
|
||||
"value": [ 0, 0, 0 ]
|
||||
},
|
||||
{
|
||||
"t": 1.000,
|
||||
"value": [ 0, 0, 400 ]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"rotation":
|
||||
{
|
||||
"value": [ 0, 0, 0 ]
|
||||
},
|
||||
|
||||
"scale":
|
||||
{
|
||||
"interpolation": "DISCRETE",
|
||||
"isLooped": "false",
|
||||
"timeline":
|
||||
[
|
||||
{
|
||||
"value": [ 20, 20 ]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"color":
|
||||
{
|
||||
"value": [ 1, 1, 0, 1 ]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -6,5 +6,5 @@ uniform sampler2D Texture;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = texture2D(Texture,texCoord).rgba
|
||||
gl_FragColor = texture2D(Texture,texCoord);
|
||||
}
|
||||
@@ -4,10 +4,9 @@ attribute vec2 vTexCoord;
|
||||
varying vec2 texCoord;
|
||||
|
||||
uniform mat4 ProjectionMatrix;
|
||||
uniform mat4 ModelViewMatrix;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_Position = ProjectionMatrix * ModelViewMatrix * vec4(vPosition.xyz, 1.0);
|
||||
gl_Position = ProjectionMatrix * vec4(vPosition.xyz, 1.0);
|
||||
texCoord = vTexCoord;
|
||||
}
|
||||
Reference in new issue
Block a user