openspades/Resources/Shaders/BasicBlockDepthOnly.fs
yvt 6bde199bea Do not use empty shaders
Some (old?) video drivers are unhappy about shaders containing no
executable lines and cause link errors.

This commit fixes #741.
2018-10-08 01:22:29 +09:00

28 lines
755 B
GLSL

/*
Copyright (c) 2013 yvt
This file is part of OpenSpades.
OpenSpades is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenSpades is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OpenSpades. If not, see <http://www.gnu.org/licenses/>.
*/
varying vec4 color;
void main() {
gl_FragColor = color;
}