bool is a non-standard glsl type not recognized by all OpenGL drivers

This commit is contained in:
Dan Paulat 2024-03-14 00:05:47 -05:00
parent 6907ade2ae
commit 15c0ddc327
4 changed files with 8 additions and 8 deletions

View file

@ -16,7 +16,7 @@ out VertexData
vec3 texCoord;
vec4 color;
ivec2 timeRange;
bool displayed;
int displayed;
} vsOut;
smooth out vec4 color;
@ -24,7 +24,7 @@ smooth out vec4 color;
void main()
{
// Always set displayed to true
vsOut.displayed = true;
vsOut.displayed = 1;
// Pass the threshold and time range to the geometry shader
vsOut.threshold = aThreshold;