Hi.
I have been reading the shader code of GLTF2 and Fillament PBR shaders and I see no support for point lights there.
Does it mean Ogre's PBR doesn't support point lights input? Is there any PoC even in some experiemetal branch I can use as a reference to add point light sources ( I need 3 of those in the scene) ?
Thanks.
Point lights in PBR material
-
- OGRE Team Member
- Posts: 2135
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1144
Re: Point lights in PBR material
the glTF2 shaders indeed only support directional and IBL. Filament has point light support though. It is not fully wired up with Ogre though. See getSpotLight in light_punctual.fs for the necessary modifications.
Alternatively, you can start with the RTSS fallback code.
Alternatively, you can start with the RTSS fallback code.
-
- Gnoblar
- Posts: 9
- Joined: Sun Jun 27, 2021 4:09 pm
Re: Point lights in PBR material
I am sorry I can't find light_punctual.fs
Could you point to the location? We are talking about Ogre 1.2,right?
Could you point to the location? We are talking about Ogre 1.2,right?
-
- OGRE Team Member
- Posts: 2135
- Joined: Sun Mar 30, 2014 2:51 pm
- x 1144
Re: Point lights in PBR material
its inside filament_shaders.zip