GuvaCode / ray4laz

A complete header translation (binding) of the raylib 5.0 to Pascal. Without any funky helper functions for memory alignment issues. Inspired and partially based on the drezgames/raylib-pascal binding, however a little cleaner and more recent, with FPC 3.2.0 and up support.
https://www.raylib.com/
zlib License
98 stars 18 forks source link

Basic lighting example is black #20

Closed ghost closed 1 year ago

ghost commented 1 year ago

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

GuvaCode commented 1 year ago

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

ghost commented 1 year ago

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 commented 1 year ago

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

ghost commented 1 year ago

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 commented 1 year ago

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

GuvaCode commented 1 year ago

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

ghost commented 1 year ago

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

I see

GuvaCode commented 1 year ago

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