mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed shader program
p4#: 21506
This commit is contained in:
parent
1db5d3f03d
commit
3ee26b20ea
@ -76,7 +76,7 @@ void main()
|
||||
if ( a_colorCell < 0.0)
|
||||
v_cellColor = vec4(0.75, 0.75, 0.75, 1); // Light grayish
|
||||
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
|
||||
v_cellColor = texture2D(u_cellTexture2D, vec2( a_colorCell-2.0f, 0.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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user