tatogame wrote:@matriax nope :\ I chose another method (spritesheet animation lol) but i will try another way to make with WebGL...
I found another fire effect made "by CPU" http://www.computableminds.com/jquery-p ... rator.html but is TOO HEAVY for anything less powerfull than nasa-pc xD
Gigatron wrote:Ok here is the file to C2 users.. Study change run, run run ... until you understand what you do.. and you win the fight !
Have fun ..
mef1sto wrote:Can anybody make something like CRT Shader FX without the ScanLines? Or just cut the scanlines from this source(comments included, but I don't know how to do that): effect-crt-shader_t92023 ...
q.x *= 1.0; // Number of flames on horizontal
q.y *= fireVP; // Vertical Y Fire-Flame separation
float strength = floor(q.x+noiseT); // Total noise in all the flame
float T3 = max(fireSPD1,fireSPD2*strength)*seconds; // 1=Speed / 2=Speed2
q.x = mod(q.x,1.0)-0.5; // 1=Separation / 2- Move to right
q.y -= firePOSy; // Position Y
vec4 scanlineWeights(float distance, vec4 color)
vec4 wid = 0.5 + 2.0 * pow(color, vec4(4.0));
vec4 weights = vec4(distance * 3.333333);
return 0.51 * exp(-pow(weights * sqrt(2.0 / wid), wid)) / (0.18 + 0.06 * wid);
Users browsing this forum: No registered users and 1 guest