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

Basic lighting example is black #20

Closed
ghost opened this issue Feb 12, 2023 · 8 comments
Closed

Basic lighting example is black #20

ghost opened this issue Feb 12, 2023 · 8 comments

Comments

@ghost
Copy link

ghost commented Feb 12, 2023

Box and plane are black in shaders_basic_lighting. How do I fix them? I use Windows.

@GuvaCode
Copy link
Owner

Try the example from the master branch.
there is also a problem if you use intel graphics

@ghost
Copy link
Author

ghost commented Feb 12, 2023

Try the example from the master branch. there is also a problem if you use intel graphics

Yes, main branch downloaded and command line tells me it renders with NVIDIA card.

@GuvaCode
Copy link
Owner

well, I don't have the opportunity to check under windows right now. under linux, everything works correctly for me

@ghost
Copy link
Author

ghost commented Feb 12, 2023

well, I don't have the opportunity to check under windows right now. under linux, everything works correctly for me

Ok but thank you

@ghost
Copy link
Author

ghost commented Feb 12, 2023

C version runs well, so I will look for a bug in here.

@GuvaCode
Copy link
Owner

GuvaCode commented Feb 12, 2023

Yes. Most likely an error in the code. I haven't updated the examples in a while

@ghost
Copy link
Author

ghost commented Feb 12, 2023

Yes. Most likely an error in the code. I haven't updated the examples in a while

I see

@GuvaCode GuvaCode reopened this Feb 12, 2023
@GuvaCode
Copy link
Owner

Are you using a dynamic library? I have the same problem only if I use static linking

@GuvaCode GuvaCode closed this as completed Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant