Commit 3f808756 authored by Marc R.'s avatar Marc R.

Merge branch '218-horizontal-section-wrong-rendering-above-uppermost-model-levels' into 'master'

Resolve "Horizontal section: Wrong rendering above uppermost model levels"

Closes #218

See merge request !202
parents 0c1a1f23 ebe5d255
......@@ -279,6 +279,14 @@ shader CSmain()
// discard all fragments that touch this vertex.
scalar = MISSING_VALUE;
}
else if (ln_plower > ln_p)
{
// The requested iso-pressure value is above the uppermost
// pressure-value in the model grid (i.e., it is out of the domain). No
// valid scalar value can be computed, set the "flag" so the fragment
// shader can discard all fragments that touch this vertex.
scalar = MISSING_VALUE;
}
else
{
// Fetch the scalar values at klower and kupper.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment