We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9a3223 commit b4d0522Copy full SHA for b4d0522
tests/cpp-tests/Resources/Shaders/example_Flower.fsh
@@ -25,7 +25,10 @@ void main(void)
25
float h = 0.5+0.5*cos(12.0*a-w*7.0+r*8.0);
26
float d = 0.25+0.75*pow(h,1.0*r)*(0.7+0.3*w);
27
28
- float col = u( d-r ) * sqrt(1.0-r/d)*r*2.5;
+ float rd = 1.0-r/d;
29
+ float col = 0.0;
30
+ if(rd > 0.0)
31
+ col = u( d-r ) * sqrt(rd)*r*2.5;
32
col *= 1.25+0.25*cos((12.0*a-w*7.0+r*8.0)/2.0);
33
col *= 1.0 - 0.35*(0.5+0.5*sin(r*30.0))*(0.5+0.5*cos(12.0*a-w*7.0+r*8.0));
34
gl_FragColor = vec4(
0 commit comments