Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Commits
bcbb5b44
Verified
Commit
bcbb5b44
authored
3 years ago
by
Josch Morgenstern
Browse files
Options
Downloads
Patches
Plain Diff
[
#111
] add params in push constant to pressure shader
parent
65d3b726
No related branches found
No related tags found
1 merge request
!95
Resolve "Wassersimulation mit Interaktion"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
projects/sph/shaders/pressure.comp
+10
-3
10 additions, 3 deletions
projects/sph/shaders/pressure.comp
with
10 additions
and
3 deletions
projects/sph/shaders/pressure.comp
+
10
−
3
View file @
bcbb5b44
...
...
@@ -4,8 +4,6 @@
const float PI = 3.1415926535897932384626433832795;
#include "particle_params.inc"
layout(local_size_x = 256) in;
struct Particle
...
...
@@ -30,7 +28,15 @@ layout(std430, binding = 1) writeonly buffer buffer_outParticle
};
layout( push_constant ) uniform constants{
float deltaTime;
float h;
float mass;
float gasConstant;
float offset;
float gravity;
float viscosity;
float ABSORBTION;
float dt;
vec3 gravityDir;
float particleCount;
};
...
...
@@ -42,6 +48,7 @@ float poly6(float r)
float densitySum = 0.f;
void main() {
uint id = gl_GlobalInvocationID.x;
if(id >= int(particleCount))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment