Skip to content

Commit e475c9c

Browse files
committed
fixed ball coloring
1 parent 8276a28 commit e475c9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/19.2_CollidingBalls/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main( int argc, char* args[] ) {
1212

1313
//Initialize the Compute Shader System
1414
// Tiny::benchmark = true;
15-
// Tiny::view.vsync = false;
15+
Tiny::view.vsync = false;
1616
Tiny::view.antialias = 0;
1717
Tiny::window("N-Ball Collisions", 800, 400);
1818
cam::near = -200.0f;

examples/19.2_CollidingBalls/shader/particle.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ layout (std430, binding = 2) buffer velocity {
1111
uniform float R;
1212

1313
void main() {
14-
vec3 color = vec3(1.0-0.002*length(v[index].xyz));
14+
vec3 color = vec3(0);
1515
if(length(pos) > R) discard;
1616
else fragColor = vec4(color, 1.0f);
1717
}

0 commit comments

Comments
 (0)