mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Well cell transparency: Turned off well cell transparency when no well pipe is visible.
For results visulaization, cell edge and faults faces. Not yet done for visualization without result colors. p4#: 21462
This commit is contained in:
@@ -75,8 +75,10 @@ void main()
|
||||
|
||||
if ( a_colorCell < 0.0)
|
||||
v_cellColor = vec4(0.75, 0.75, 0.75, 1); // Light grayish
|
||||
else
|
||||
v_cellColor = texture2D(u_cellTexture2D, vec2( a_colorCell, 0.5f));
|
||||
else if ( a_colorCell >= 2.0)
|
||||
v_cellColor = texture2D(u_cellTexture2D, vec2( a_colorCell-2.0f, 0f)); // Opaque, because the y=0 texcoord points to the opaque part of an modified texture
|
||||
else
|
||||
v_cellColor = texture2D(u_cellTexture2D, vec2( a_colorCell, 0.5f)); // Default, transparent if the texture is modified
|
||||
|
||||
/*
|
||||
// Performance test code
|
||||
|
||||
Reference in New Issue
Block a user