Commit 1481d555 authored by artificiel's avatar artificiel
Browse files

ClientManager: sticky mesh particules immobiles si au sol

parent d3a60ed1
......@@ -135,8 +135,8 @@ bool ClientsManager::receive_mesh(ofMesh &mesh)
color.a = color.a + sticky_mesh_twinkle_amnt_;
}
if (sticky_mesh_dither_amnt_ > 0) {
auto v = tmp_mesh.getVertices()[i];
auto v = tmp_mesh.getVertices()[i];
if (sticky_mesh_dither_amnt_ > 0 && v.y > 0.0) {
v.x += ofRandom(-sticky_mesh_dither_amnt_, sticky_mesh_dither_amnt_);
v.z += ofRandom(-sticky_mesh_dither_amnt_, sticky_mesh_dither_amnt_);
v.y += ofRandom(-sticky_mesh_dither_amnt_, 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment