mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Show alpha in textures in the GE debugger.
This commit is contained in:
parent
d734b59904
commit
ba289c1e73
1 changed files with 5 additions and 3 deletions
|
@ -47,8 +47,8 @@ static const char tex_fs[] =
|
|||
"uniform sampler2D sampler0;\n"
|
||||
"varying vec2 v_texcoord0;\n"
|
||||
"void main() {\n"
|
||||
" gl_FragColor.rgb = texture2D(sampler0, v_texcoord0).rgb;\n"
|
||||
" gl_FragColor.a = 1.0;\n"
|
||||
" gl_FragColor = texture2D(sampler0, v_texcoord0);\n"
|
||||
" gl_FragColor.a = clamp(gl_FragColor.a, 0.2, 1.0);\n"
|
||||
"}\n";
|
||||
|
||||
static const char basic_vs[] =
|
||||
|
@ -203,7 +203,9 @@ void SimpleGLWindow::DrawChecker() {
|
|||
void SimpleGLWindow::Draw(u8 *data, int w, int h, bool flipped, Format fmt, ResizeType resize) {
|
||||
DrawChecker();
|
||||
|
||||
glDisable(GL_BLEND);
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glBlendEquation(GL_FUNC_ADD);
|
||||
glViewport(0, 0, w_, h_);
|
||||
glScissor(0, 0, w_, h_);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue