mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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.
35 lines
863 B
Plaintext
35 lines
863 B
Plaintext
puts "========"
|
|
puts "0025822: Visualization, TKOpenGl - front material should be used instead of back material within distinguish mode turned off"
|
|
puts "========"
|
|
|
|
pload MODELING OCAF XDE
|
|
box b 10 10 10
|
|
vclear
|
|
vinit View1
|
|
catch { Close D }
|
|
NewDocument D BinXCAF
|
|
XAddShape D b
|
|
XSetColor D b BLUE
|
|
explode b f
|
|
XSetColor D b_1 RED
|
|
|
|
XDisplay D
|
|
vviewparams -proj 1 0.1 0.1
|
|
vfit
|
|
vsetdispmode 1
|
|
|
|
catch { vclipplane delete pln }
|
|
vclipplane create pln
|
|
vclipplane set pln view Driver1/Viewer1/View1
|
|
vclipplane change pln equation -1 0 0 5
|
|
|
|
# FFP on
|
|
vcaps -ffp 1
|
|
set aColorFfp [vreadpixel 200 200 rgb name]
|
|
if { "$aColorFfp" != "RED" } { puts "Error: RED color is expected at the back side (FFP)" }
|
|
|
|
# GLSL on
|
|
vcaps -ffp 0
|
|
set aColorGlsl [vreadpixel 200 200 rgb name]
|
|
if { "$aColorGlsl" != "FIREBRICK" } { puts "Error: FIREBRICK color is expected at the back side (GLSL)" }
|