X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=tests%2Fv3d%2Fglsl%2Fdistinguish_off;h=098c70fdf66df3ebaacb44a0d52c7f1f46e34a4c;hp=75e94b1e150eff4190dcb71084ac4bd917c4ba43;hb=9f013fee98193ef8fc85f7082220b986c1abcb83;hpb=e837410dac53c22bd288637952c63a7a2cedb79e diff --git a/tests/v3d/glsl/distinguish_off b/tests/v3d/glsl/distinguish_off index 75e94b1e15..098c70fdf6 100644 --- a/tests/v3d/glsl/distinguish_off +++ b/tests/v3d/glsl/distinguish_off @@ -5,34 +5,30 @@ puts "========" pload MODELING OCAF XDE box b 10 10 10 vclear -vclose all +vinit View1 catch { Close D } NewDocument D BinXCAF XAddShape D b -XSetColor D b 0 0 1 +XSetColor D b BLUE explode b f -XSetColor D b_1 1 0 0 +XSetColor D b_1 RED -XShow D +XDisplay D vviewparams -proj 1 0.1 0.1 vfit vsetdispmode 1 catch { vclipplane delete pln } vclipplane create pln -vclipplane set pln view Driver1/Document_D/View1 +vclipplane set pln view Driver1/Viewer1/View1 vclipplane change pln equation -1 0 0 5 -# FFP on, pixel is RED3, which is expected +# FFP on vcaps -ffp 1 set aColorFfp [vreadpixel 200 200 rgb name] -if { "$aColorFfp" != "RED3" } { - puts "Error: RED3 color is expected at the back side (FFP)" -} +if { "$aColorFfp" != "RED" } { puts "Error: RED color is expected at the back side (FFP)" } -# GLSL on, pixel should has the same color RED3, but actual color is KHAKI1 +# GLSL on vcaps -ffp 0 set aColorGlsl [vreadpixel 200 200 rgb name] -if { "$aColorGlsl" != "RED3" } { - puts "Error: RED3 color is expected at the back side (GLSL)" -} +if { "$aColorGlsl" != "FIREBRICK" } { puts "Error: FIREBRICK color is expected at the back side (GLSL)" }