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
b514f4e8
Commit
b514f4e8
authored
3 years ago
by
Alexander Gauggel
Browse files
Options
Downloads
Patches
Plain Diff
[
#69
] Correct tonemapping
parent
a22977e8
No related branches found
No related tags found
1 merge request
!56
Resolve "Partikelsystem"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projects/particle_simulation/shaders/tonemapping.comp
+1
-1
1 addition, 1 deletion
projects/particle_simulation/shaders/tonemapping.comp
projects/particle_simulation/src/main.cpp
+1
-1
1 addition, 1 deletion
projects/particle_simulation/src/main.cpp
with
2 additions
and
2 deletions
projects/particle_simulation/shaders/tonemapping.comp
+
1
−
1
View file @
b514f4e8
...
...
@@ -13,7 +13,7 @@ void main(){
}
ivec2 uv = ivec2(gl_GlobalInvocationID.xy);
vec3 linearColor = imageLoad(inImage, uv).rgb;
vec3 tonemapped = linearColor / (linearColor + 1); // reinhard tonemapping
vec3 tonemapped = linearColor /
(dot
(linearColor
, vec3(0.21, 0.71, 0.08))
+ 1); // reinhard tonemapping
vec3 gammaCorrected = pow(tonemapped, vec3(1.f / 2.2f));
imageStore(outImage, uv, vec4(gammaCorrected, 0.f));
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
projects/particle_simulation/src/main.cpp
+
1
−
1
View file @
b514f4e8
...
...
@@ -59,7 +59,7 @@ int main(int argc, const char **argv) {
}
// use space or use water
bool
useSpace
=
fals
e
;
bool
useSpace
=
tru
e
;
vkcv
::
shader
::
GLSLCompiler
compiler
;
vkcv
::
ShaderProgram
computeShaderProgram
{};
...
...
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