Skip to content

Commit

Permalink
Merge pull request #4209 from larshg/FixSimulationTool
Browse files Browse the repository at this point in the history
[Simulation] Don't prefix in shaders.
  • Loading branch information
kunaltyagi authored Jul 2, 2020
2 parents e6d032a + 81d7991 commit a4ab750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simulation/src/compute_score.frag
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void main()
float depth_val = texture2D(DepthSampler, TexCoord0.st).r;
float ref_meters = 1.0 / (reference_depth_val * (1.0/f - 1.0/n) + 1.0/n);
float depth_meters = 1.0 / (depth_val * (1.0/f - 1.0/n) + 1.0/n);
float min_dist = std::abs(ref_meters - depth_meters);
float min_dist = abs(ref_meters - depth_meters);

float likelihood = texture2D(CostSampler, vec2(clamp(min_dist/3.0, 0.0, 1.0),0.0)).r;
float ratio = 0.99;
Expand Down

0 comments on commit a4ab750

Please sign in to comment.