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
a91a74e2
Commit
a91a74e2
authored
3 years ago
by
Alexander Gauggel
Browse files
Options
Downloads
Plain Diff
[
#94
] Merge
parents
1a2f45bc
41e26d71
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!77
Resolve "SAF-R Module"
Pipeline
#27107
passed
3 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
projects/saf_r/shaders/raytracing.comp
+3
-4
3 additions, 4 deletions
projects/saf_r/shaders/raytracing.comp
projects/saf_r/src/main.cpp
+2
-2
2 additions, 2 deletions
projects/saf_r/src/main.cpp
with
5 additions
and
6 deletions
projects/saf_r/shaders/raytracing.comp
+
3
−
4
View file @
a91a74e2
...
@@ -34,9 +34,9 @@ layout(std430, binding = 1) coherent buffer spheres{
...
@@ -34,9 +34,9 @@ layout(std430, binding = 1) coherent buffer spheres{
layout(set=0, binding = 2, rgba8) uniform image2D outImage;
layout(set=0, binding = 2, rgba8) uniform image2D outImage;
layout( push_constant ) uniform constants{
layout( push_constant ) uniform constants{
floa
t lightCount;
in
t lightCount;
floa
t matCount;
in
t matCount;
floa
t sphereCount;
in
t sphereCount;
};
};
bool ray_intersect(const vec3 origin, const vec3 dir, out float t0, const int id){
bool ray_intersect(const vec3 origin, const vec3 dir, out float t0, const int id){
...
@@ -125,7 +125,6 @@ vec3 computeHitLighting(Intersection intersection, vec3 V, out float outReflecti
...
@@ -125,7 +125,6 @@ vec3 computeHitLighting(Intersection intersection, vec3 V, out float outReflecti
vec3 castRay(const vec3 initialOrigin, const vec3 initialDirection, int max_depth) {
vec3 castRay(const vec3 initialOrigin, const vec3 initialDirection, int max_depth) {
vec3 skyColor = vec3(0.2, 0.7, 0.8);
vec3 skyColor = vec3(0.2, 0.7, 0.8);
vec3 rayOrigin = initialOrigin;
vec3 rayOrigin = initialOrigin;
vec3 rayDirection = initialDirection;
vec3 rayDirection = initialDirection;
...
...
This diff is collapsed.
Click to expand it.
projects/saf_r/src/main.cpp
+
2
−
2
View file @
a91a74e2
...
@@ -133,8 +133,8 @@ int main(int argc, const char** argv) {
...
@@ -133,8 +133,8 @@ int main(int argc, const char** argv) {
);
);
sphereBuffer
.
fill
(
spheres
);
sphereBuffer
.
fill
(
spheres
);
glm
::
vec3
pushData
=
glm
::
vec3
((
lights
.
size
()),
(
materials
.
size
()),
(
spheres
.
size
()));
glm
::
i
vec3
pushData
=
glm
::
i
vec3
((
lights
.
size
()),
(
materials
.
size
()),
(
spheres
.
size
()));
vkcv
::
PushConstants
pushConstantsCompute
(
sizeof
(
glm
::
vec3
));
vkcv
::
PushConstants
pushConstantsCompute
(
sizeof
(
glm
::
i
vec3
));
pushConstantsCompute
.
appendDrawcall
(
pushData
);
pushConstantsCompute
.
appendDrawcall
(
pushData
);
vkcv
::
DescriptorWrites
setWrites
;
vkcv
::
DescriptorWrites
setWrites
;
...
...
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