Point lights in PBR material

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
sasmaster
Gnoblar
Posts: 9
Joined: Sun Jun 27, 2021 4:09 pm

Point lights in PBR material

Post by sasmaster »

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.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1993
Joined: Sun Mar 30, 2014 2:51 pm
x 1073
Contact:

Re: Point lights in PBR material

Post by paroj »

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.
sasmaster
Gnoblar
Posts: 9
Joined: Sun Jun 27, 2021 4:09 pm

Re: Point lights in PBR material

Post by sasmaster »

I am sorry I can't find light_punctual.fs
Could you point to the location? We are talking about Ogre 1.2,right?
paroj
OGRE Team Member
OGRE Team Member
Posts: 1993
Joined: Sun Mar 30, 2014 2:51 pm
x 1073
Contact:

Re: Point lights in PBR material

Post by paroj »

its inside filament_shaders.zip
Post Reply