Skip to content
Snippets Groups Projects
Verified Commit dc02c819 authored by Josch Morgenstern's avatar Josch Morgenstern
Browse files

[#111] change poly6 function

parent c83fe392
No related branches found
No related tags found
1 merge request!95Resolve "Wassersimulation mit Interaktion"
...@@ -36,7 +36,7 @@ layout( push_constant ) uniform constants{ ...@@ -36,7 +36,7 @@ layout( push_constant ) uniform constants{
float poly6(float r) float poly6(float r)
{ {
return 315/(64*PI*pow(h, 9)) * pow((h-r), 3) * int(0<=r && r<=h); return (315.f/(64.f*PI*pow(h, 9)) * pow((pow(h,2)-pow(r,2)), 3)) * int(0<=r && r<=h);
} }
float densitySum = 0.f; float densitySum = 0.f;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment