Commit ebe5d255 authored by Bianca Tost's avatar Bianca Tost

fixed horizontal cross-section being rendered completely although partly out...

fixed horizontal cross-section being rendered completely although partly out of domain (above uppermost level)
parent 43294828
......@@ -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