Commit 4d5de020 by John Kessenich

Force "smooth" interpolation qualification when in a fragment shader.

parent 78016eff
...@@ -8,6 +8,7 @@ LD_LIBRARY_PATH=`pwd`/glslang/MachineIndependent/lib:${LD_LIBRARY_PATH} ...@@ -8,6 +8,7 @@ LD_LIBRARY_PATH=`pwd`/glslang/MachineIndependent/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH export LD_LIBRARY_PATH
# run using test data # run using test data
cd StandAlone cd Test
./StandAlone -i sample.vert sample.frag ../StandAlone/StandAlone -i sample.vert sample.frag
...@@ -1601,6 +1601,9 @@ fully_specified_type ...@@ -1601,6 +1601,9 @@ fully_specified_type
$$.qualifier = $1.qualifier; $$.qualifier = $1.qualifier;
if ($$.qualifier.precision == EpqNone) if ($$.qualifier.precision == EpqNone)
$$.qualifier.precision = $2.qualifier.precision; $$.qualifier.precision = $2.qualifier.precision;
if (! $$.qualifier.isInterpolation() && parseContext.language == EShLangFragment)
$$.qualifier.smooth = true;
} }
; ;
......
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