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

Can you add example about light /shadow #328

Open
njikmf opened this issue Feb 11, 2025 · 3 comments
Open

Can you add example about light /shadow #328

njikmf opened this issue Feb 11, 2025 · 3 comments

Comments

@njikmf
Copy link

njikmf commented Feb 11, 2025

Hi , I 'm not fully understand the light / shadow usage, there is example "Shadow" use shadowmap + directional light, the "GltfViewer" use PBR , I tried a custom gltf model , which have basic cube + plane + point light, but looks like no shadow, may be I use wrong setting. For code part, there 's only directional light defines, no point light or spot light, so I am confused. In Gltf namespace looks support direction + point + spot, but do not see shadow part.
Can you add an example to show all kinds of light + shadow ? Thanks !

@TheMostDiligent
Copy link
Contributor

GLTF Viewer currently does not support shadows.
It does support punctual lights (point, spot, directional) defined in the GLTF model.

@njikmf
Copy link
Author

njikmf commented Feb 11, 2025

I mean this DiligentEngine support point/spot light shadow?

@TheMostDiligent
Copy link
Contributor

The shadow map component only supports directional lights now.

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

2 participants