I am working on building a custom shader that will not be rendered. I specifically want to instruct the fragment shader not to write anything, therefore I am not setting gl_FragColor in the code.
The shader program performs well on Firefox and Edge, however, it is encountering an issue on Chrome. The warning message on Chrome states: "GL_INVALID_OPERATION: Active draw buffers with missing fragment shader outputs."
Is there a way to resolve this problem on Chrome? Are there any settings that can allow the shader to be accepted without a fragment output?
vertexShader:
void main()
{
vec4 modelViewPosition = modelViewMatrix * vec4(position, 1.0);
gl_Position = projectionMatrix * modelViewPosition;
}
fragmentShader:
void main() {
return;
}