gl_FrontFacing is now considered within Normal computation.
+ aSrcFragExtraMain
+ (isFlatNormal
? EOL" Normal = normalize (cross (dFdx (Position.xyz / Position.w), dFdy (Position.xyz / Position.w)));"
+ EOL" if (!gl_FrontFacing) { Normal = -Normal; }"
: "")
+ EOL" occSetFragColor (getColor());"
+ aSrcFragWriteOit
--- /dev/null
+puts "============="
+puts "0030102: Visualization, TKOpenGl - Graphic3d_TOSM_FACET shading is incorrect in some casesn"
+puts "============="
+
+pload MODELING VISUALIZATION
+vclear
+vinit View1
+vaxo
+vdrawparray b triangles v 0 55 0 v 0 75 0 v 20 55 0 v 0 55 0 v 0 75 0 v 0 55 20 v 0 55 0 v 0 55 20 v 20 55 0 v 0 75 0 v 0 55 20 v 20 55 0
+vrotate 0.3 0.0 0.0
+vfit
+
+vdump ${imagedir}/${casename}.png