Page 1 of 1
[2.1] Emissive map
Posted: Sun Oct 21, 2018 12:41 pm
by Slicky
It looks like you can't use an emissive map texture in the PBS system. I see:
Code: Select all
void Ogre::HlmsPbsDatablock::setEmissive ( const Vector3 & emissiveColour )
in the API but that is not a map.
Is there another way to achieve it? I read it's not a physical property but nevertheless it seems useful to use.
Re: [2.1] Emissive map
Posted: Sun Oct 21, 2018 12:45 pm
by Slicky
I wonder if it would work baking the emissive into the base texture since there doesn't seem to be direct support?
Re: [2.1] Emissive map
Posted: Sun Oct 21, 2018 1:00 pm
by Slicky
After some more search it seems confusing. There is a PBSM_EMISSIVE in code but I don't see an emisssive_map item to use in scripts.
I'm trying to compare scripts to code versions while I'm testing things,
Re: [2.1] Emissive map
Posted: Sun Oct 21, 2018 3:44 pm
by dark_sylinc
Not all features are supported from the old script format. It is kept for convenience due to their simplicity for hand editing. JSON materials are feature complete.
Re: [2.1] Emissive map
Posted: Sun Oct 21, 2018 4:24 pm
by Slicky
Ah ok that makes sense. So it is supported but I should be using json if I want to try a script version.