Skip to content

Commit

Permalink
Simplified expression in shader
Browse files Browse the repository at this point in the history
  • Loading branch information
norru committed Aug 10, 2018
1 parent 823253e commit bf75de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/shaders/forward/ripple_particle.frag
Expand Up @@ -57,7 +57,7 @@ void main() {

float e = intensity; // or something
float w = cos((phase - r) * frequency);
float f = exp(-r) * w * w * (1 - step(1, r)); //(r < 1 ? 1 : 0);
float f = exp(-r) * w * w * float(r < 1);

vec4 color = u_Emissive * e * f;
o_Color.rgb = color.rgb * color.a;
Expand Down

0 comments on commit bf75de3

Please sign in to comment.