2016-06-30 15:54:35 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// SolveSpace Mesh rendering shader
|
|
|
|
//
|
|
|
|
// Copyright 2016 Aleksey Egorov
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
uniform vec4 color;
|
|
|
|
uniform sampler2D texture;
|
|
|
|
|
|
|
|
void main() {
|
2016-11-16 02:22:10 +00:00
|
|
|
if(texture2D(texture, gl_FragCoord.xy / 32.0).a < 0.5) discard;
|
2016-06-30 15:54:35 +00:00
|
|
|
gl_FragColor = color;
|
|
|
|
}
|