mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-26 10:19:45 +03:00
OpenGL rendering is now done into sRGB framebuffer. OpenGl_ShaderManager::prepareStdProgramFboBlit() has been extended by programs resolving MSAA texture and applying gamma correction as fallbacks. Quantity_Color definition has been modified to store RGB components in linear color space within Quantity_TOC_RGB type. Standard colors defined by Quantity_NameOfColor enumeration has been updated accordingly. New Quantity_TOC_sRGB type has been introduced to handle RGB components in non-linear sRGB color space. OpenGl_TextureFormat class definition has been moved to dedicated files. New method OpenGl_TextureFormat::FindFormat() replaces OpenGl_Texture::GetDataFormat(). New method OpenGl_TextureFormat::FindSizedFormat() replaces OpenGl_FrameBuffer::getColorDataFormat() and OpenGl_FrameBuffer::getDepthDataFormat(). Graphic3d_TextureRoot::IsColorMap() - introduced new property defining if RGB(A)8 image formats should be loaded as sRGB(A) textures or as data RGB(A) textures. OpenGl_Texture initialization methods have been extended with new theIsColorMap argument. vreadpixel - added argument -sRGB printing color in sRGB color space. Test cases have been updated to new sRGB rendered results.
27 lines
797 B
Plaintext
27 lines
797 B
Plaintext
box b1 0 0 0 1 1 1
|
|
box b2 2 0 0 1 1 1
|
|
vclear
|
|
vinit View1
|
|
vviewparams -scale 404 -proj 0.8 -0.16 0.5 -up -0.4 0.4 0.8 -at 1.5 0.5 0.5
|
|
vselfilter -clear
|
|
vselprops -pickStrategy first
|
|
vdisplay -dispMode 1 -highMode 1 b1 b2
|
|
vfit
|
|
|
|
vselmode b1 4 1
|
|
vmoveto 220 220
|
|
if { [vreadpixel 220 220 rgb name] != "TURQUOISE2" } { puts "Error: box b2 should be highlighted" }
|
|
|
|
vselfilter -type FACE
|
|
vmoveto 0 0
|
|
vmoveto 220 220
|
|
if { [vreadpixel 150 150 rgb name] != "CYAN" } { puts "Error: face of box b1 should be highlighted" }
|
|
|
|
vselprops -pickStrategy topmost
|
|
vmoveto 0 0
|
|
vmoveto 220 220
|
|
if { [vreadpixel 150 150 rgb name] == "CYAN" } { puts "Error: face of box b1 should NOT be highlighted" }
|
|
|
|
vmoveto 150 150
|
|
if { [vreadpixel 150 150 rgb name] != "CYAN" } { puts "Error: face of box b1 should be highlighted" }
|