mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0026421: Visualization - Incorrect text rendering in raytracing mode
This commit is contained in:
parent
316d77d981
commit
e99a2eef31
@ -951,7 +951,7 @@ vec4 Radiance (in SRay theRay, in vec3 theInverse)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
vec4 aGlColor = ComputeOpenGlColor();
|
vec4 aGlColor = ComputeOpenGlColor();
|
||||||
aColor = vec4 (BackgroundColor().rgb * aGlColor.w + ComputeOpenGlColor().rgb, aGlColor.w);
|
aColor = vec4 (mix (aGlColor.rgb, BackgroundColor().rgb, aGlColor.w), aGlColor.w);
|
||||||
}
|
}
|
||||||
|
|
||||||
aResult += aWeight.xyz * aColor.xyz; aWeight.w *= aColor.w;
|
aResult += aWeight.xyz * aColor.xyz; aWeight.w *= aColor.w;
|
||||||
|
@ -16,12 +16,12 @@ vdisplay b
|
|||||||
vfit
|
vfit
|
||||||
vraytrace 1
|
vraytrace 1
|
||||||
set bug_info_1 [vreadpixel 50 50 rgb name]
|
set bug_info_1 [vreadpixel 50 50 rgb name]
|
||||||
if {$bug_info_1 != "GRAY8"} {
|
if {$bug_info_1 != "GRAY4"} {
|
||||||
puts "ERROR: OCC26404 is reproduced. Background color is invalid (case #1)."
|
puts "ERROR: OCC26404 is reproduced. Background color is invalid (case #1)."
|
||||||
}
|
}
|
||||||
vsetgradientbg 255 0 0 0 0 255 1
|
vsetgradientbg 255 0 0 0 0 255 1
|
||||||
vsetgradientbg 255 0 0 0 0 255 0
|
vsetgradientbg 255 0 0 0 0 255 0
|
||||||
set bug_info_2 [vreadpixel 50 50 rgb name]
|
set bug_info_2 [vreadpixel 50 50 rgb name]
|
||||||
if {$bug_info_2 != "GRAY8"} {
|
if {$bug_info_2 != "GRAY4"} {
|
||||||
puts "ERROR: OCC26404 is reproduced. Background color is invalid (case #2)."
|
puts "ERROR: OCC26404 is reproduced. Background color is invalid (case #2)."
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user