Skip to content

Commit 4b07fc9

Browse files
committed
fix diffuse particles. Lol
1 parent 69a649f commit 4b07fc9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

binary/src/flex_renderer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ void FlexRenderer::build_meshes(FlexSolver* flex, float diffuse_radius) {
201201
diffuse_data.max_particles = max_particles;
202202
diffuse_data.radius = flex->get_parameter("radius") / flex->get_parameter("diffuse_lifetime") * diffuse_radius;
203203
diffuse_data.particle_ani0 = (Vector4D*)flex->get_host("diffuse_vel");
204+
diffuse_data.view_projection_matrix = view_projection_matrix;
204205

205206
max_meshes = ceil(max_particles / (float)MAX_PRIMATIVES);
206207
for (int mesh_index = 0; mesh_index < max_meshes; mesh_index++) {

0 commit comments

Comments
 (0)