luis605 / Lit-Engine

A game engine with the speed and portability of cpp made with raylib.
Other
26 stars 1 forks source link

هناك مشاكل مع إضاءة السماء. #43

Closed WOLFxxxxxx closed 21 hours ago

WOLFxxxxxx commented 2 days ago

a1

a2

luis605 commented 2 days ago

What's the issue?

WOLFxxxxxx commented 2 days ago

Sky lighting does not show images on the object

Only sunlight exposes images to the object.

a1 a2

luis605 commented 2 days ago

The lighting shader handles the textures. What's happening is that the diffuse texture is calculated based on the light objects, not the ambient light. There are 2 known issues that happened after the shader rewrite which is that and black dots if the light is near the origin. They are relatively easy to fix, but since I don't have much time to work on the engine they haven't been fixed yet.

luis605 commented 21 hours ago

I have uploaded a fix to github. Closing the issue as fixed.