added transparency support,
need to sort the transparent things to the back
This commit is contained in:
@@ -11,5 +11,7 @@ varying vec2 v_texcoord;
|
||||
void main()
|
||||
{
|
||||
// Set fragment color from texture
|
||||
gl_FragColor = texture2D(texture, v_texcoord);
|
||||
vec4 finalColor = vec4(texture2D(texture, v_texcoord));
|
||||
|
||||
gl_FragColor = finalColor;
|
||||
}
|
||||
|
Reference in New Issue
Block a user