DiligentEngine icon indicating copy to clipboard operation
DiligentEngine copied to clipboard

Can you add example about light /shadow

Open njikmf opened this issue 1 year ago • 5 comments

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 !

njikmf avatar Feb 11 '25 05:02 njikmf

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

TheMostDiligent avatar Feb 11 '25 07:02 TheMostDiligent

I mean this DiligentEngine support point/spot light shadow?

njikmf avatar Feb 11 '25 10:02 njikmf

The shadow map component only supports directional lights now.

TheMostDiligent avatar Feb 11 '25 16:02 TheMostDiligent

So, no shadows at all from point lights? Is that on the roadmap?

That's a strange feature not to have. Even old Horde 3D has this stuff.

VinnyVicious avatar Mar 22 '25 20:03 VinnyVicious

There are very many features we would like to have, but unfortunately our resources are very limited and we can't do everything.

TheMostDiligent avatar Mar 23 '25 01:03 TheMostDiligent