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
8a63e9fd
Commit
8a63e9fd
authored
3 years ago
by
Alexander Gauggel
Browse files
Options
Downloads
Patches
Plain Diff
[
#69
] Slightly increase particle size
parent
a7fa0ebd
No related branches found
No related tags found
1 merge request
!56
Resolve "Partikelsystem"
Pipeline
#26072
failed
3 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projects/particle_simulation/shaders/shader.vert
+1
-1
1 addition, 1 deletion
projects/particle_simulation/shaders/shader.vert
projects/particle_simulation/src/main.cpp
+3
-3
3 additions, 3 deletions
projects/particle_simulation/src/main.cpp
with
4 additions
and
4 deletions
projects/particle_simulation/shaders/shader.vert
+
1
−
1
View file @
8a63e9fd
...
@@ -40,6 +40,6 @@ void main()
...
@@ -40,6 +40,6 @@ void main()
gl_Position
=
projection
*
positionView
;
gl_Position
=
projection
*
positionView
;
// 0.01 corresponds to vertex position size in main
// 0.01 corresponds to vertex position size in main
float
normalizationDivider
=
0
.
01
;
float
normalizationDivider
=
0
.
01
2
;
passTriangleCoordinates
=
particle
.
xy
/
normalizationDivider
;
passTriangleCoordinates
=
particle
.
xy
/
normalizationDivider
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
projects/particle_simulation/src/main.cpp
+
3
−
3
View file @
8a63e9fd
...
@@ -114,9 +114,9 @@ int main(int argc, const char **argv) {
...
@@ -114,9 +114,9 @@ int main(int argc, const char **argv) {
true
};
true
};
particlePipelineDefinition
.
m_blendMode
=
vkcv
::
BlendMode
::
Additive
;
particlePipelineDefinition
.
m_blendMode
=
vkcv
::
BlendMode
::
Additive
;
const
std
::
vector
<
glm
::
vec3
>
vertices
=
{
glm
::
vec3
(
-
0.01
,
0.01
,
0
),
const
std
::
vector
<
glm
::
vec3
>
vertices
=
{
glm
::
vec3
(
-
0.01
2
,
0.01
2
,
0
),
glm
::
vec3
(
0.01
,
0.01
,
0
),
glm
::
vec3
(
0.01
2
,
0.01
2
,
0
),
glm
::
vec3
(
0
,
-
0.01
,
0
)};
glm
::
vec3
(
0
,
-
0.01
2
,
0
)};
vertexBuffer
.
fill
(
vertices
);
vertexBuffer
.
fill
(
vertices
);
...
...
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