Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen turns completly black if shader changed on GLES2 #32479

Closed
Chaosus opened this issue Oct 2, 2019 · 12 comments
Closed

Screen turns completly black if shader changed on GLES2 #32479

Chaosus opened this issue Oct 2, 2019 · 12 comments
Labels
Milestone

Comments

@Chaosus
Copy link
Member

Chaosus commented Oct 2, 2019

Godot version:
bf1c81a

OS/device including version:
Win10/GTX1060

Issue description:
bug

Steps to reproduce:
Create a MeshInstance, add a shader to it and try to change...

Note: its different from #32458 - this issue happens every time the shader changed, and the screen turns completely black, not only background...

@Chaosus Chaosus added this to the 3.2 milestone Oct 2, 2019
@akien-mga
Copy link
Member

No error in the terminal?

@Chaosus
Copy link
Member Author

Chaosus commented Oct 2, 2019

Nope. Its also broke the render modes - so you unable to change it to wireframe or overdraw

image

@akien-mga
Copy link
Member

I guess it's likely caused by #31845.

@Chaosus
Copy link
Member Author

Chaosus commented Oct 2, 2019

You right it's from that PR, I've checked

@akien-mga
Copy link
Member

akien-mga commented Oct 2, 2019

I did a quick test on Linux, AMD Radeon RX Vega M, I don't seem to reproduce the issue:
Screenshot_20191002_091128
Also seems to work fine with Intel HD 630.

So there might be something specific to your project, e.g. Environment config.

@Chaosus
Copy link
Member Author

Chaosus commented Oct 2, 2019

Thats strange - Im unable to reproduce it on new project but it will on -

AShaderTest.zip

@akien-mga
Copy link
Member

akien-mga commented Oct 2, 2019

Its also broke the render modes - so you unable to change it to wireframe or overdraw

I can confirm that render modes don't seem to change anything, but did they ever work on GLES2? Maybe they're only implemented in GLES3.

Thats strange - Im unable to reproduce it on new project but it will on -

AShaderTest.zip

This project also seems to work fine for me, weird.

Maybe delete your drivers/gles2/shaders/*.gen.h and rebuild to be sure that you got the proper shaders compiled.

@Zireael07
Copy link
Contributor

IIRC render modes are GLES3 only?

@Calinou
Copy link
Member

Calinou commented Oct 2, 2019

@Zireael07 That's correct, see #27018.

@Chaosus
Copy link
Member Author

Chaosus commented Oct 2, 2019

Hmm.. probably some environment bug, in the scene

@Chaosus
Copy link
Member Author

Chaosus commented Oct 2, 2019

Anyways, after cleanup the *.gen shader files again Its no longer happens ( which is weird cuz deleting it several times before but it have no effect)

@avril-gh
Copy link
Contributor

avril-gh commented Oct 2, 2019

I can confirm that render modes don't seem to change anything, but did they ever work on GLES2?

they did'nt worked on GLES2 for a long time, i remember i had to use GLES3 mode when i been working on vertex shader's to see wireframe preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants