Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RBComb Ray Tracer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
Pascal Engeler
RBComb Ray Tracer
Commits
ec978d24
Commit
ec978d24
authored
3 years ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
removed extinction
parent
7e84d72a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ray.hpp
+1
-3
1 addition, 3 deletions
src/ray.hpp
with
1 addition
and
3 deletions
src/ray.hpp
+
1
−
3
View file @
ec978d24
...
...
@@ -6,7 +6,7 @@
class
ray
{
public:
ray
();
ray
(
const
point3
&
origin
,
const
vec3
&
direction
,
double
amplitude
,
double
opl
,
double
refractive_index
,
double
extinction_coeff
,
int
phase_flips
,
int
max_bounces
);
ray
(
const
point3
&
origin
,
const
vec3
&
direction
,
double
amplitude
,
double
opl
,
double
refractive_index
,
int
phase_flips
,
int
max_bounces
);
point3
origin
()
const
;
vec3
direction
()
const
;
...
...
@@ -22,14 +22,12 @@ public:
int
get_source
()
const
;
double
get_amplitude
()
const
;
double
get_amplitude_at
(
double
t
)
const
;
private:
point3
orig
;
vec3
dir
;
double
optical_path
;
//optical path since pixel
double
refractive_index
;
//refractive index of next straight path
double
extinction_coeff
;
//extinction coeff of next straight path
int
phase_flips
;
//number of phase flips accumulated so far (from refl.)
int
source
;
//information about the source the ray ended at (0 for none)
int
bounces_left
;
//number of bounces the ray can perform
...
...
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