-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add simple lighting (sun), and point light sources (torches, etc.) #42
Comments
Yes, actually a dynamic lighting system would be interesting. I have resumed my work for textures and all the graphics, and with the addition of a lighting system everything will look more beautiful. Thank you for your cooperation. |
Speaking of textures, I have already created a branch with separate textures. You can see them here: https://github.com/benmoran56/TerraCraft/tree/independent_images/assets/textures There is one problem, which is why I have not merged the changes. Some of the textures look blurry. Currently, we are setting the texture scaling to "nearest" to have a pixelated appearance. However, when using the pyglet text module, the texture scaling gets reset. This can make the block textures blurry. The next pyglet release has a new option to change the default texture scaling for all textures, so maybe we can wait for that version. |
Interesting then pixel perfection and smooth (active / deactivated) will be in the new features of the next release? thanks for the news. Surely it is something very useful. Thank you. |
This will require writing some simple LightSource classes. OpenGL has a few different types of lights with logs of parameters. It will require a little bit of OpenGL knowledge to write these classes but, once written, will be easy to use to add lights emitting to different things.
The text was updated successfully, but these errors were encountered: