[Solved] [v1.10] PbsMaterial Functions

Minor issues with the Ogre API that can be trivial to fix
Post Reply
dermont
Orc Shaman
Posts: 748
Joined: Thu Dec 09, 2004 2:51 am

[Solved] [v1.10] PbsMaterial Functions

Post by dermont » Sat Apr 15, 2017 4:24 am

I'm running python-ogre and some of the texture member function names for the Hlms Component PbsMaterial/HlmsMaterialBase are weird, not sure if these are just typos or deliberate.

Code: Select all

class MyPbsMaterial(hlms.PbsMaterial):
    def __init__(self):
        hlms.PbsMaterial.__init__(self)

    def createTexturUnits(self, pass_):
        hlms.PbsMaterial.createTexturUnits(self, pass_)

    def setNormalrTexture(self, mapSlot, tex, textureAddressing, normalBlendFactor, BlendFactor):
        hlms.PbsMaterial.setNormalrTexture(self, mapSlot, tex, textureAddressing, normalBlendFactor, BlendFactor)

    def updateTexturUnits(self, textureUnitState, fragmentParams, lightList, s, index):
        hlms.PbsMaterial.updateTexturUnits(self, textureUnitState, fragmentParams, lightList, s, index)

Last edited by dermont on Mon Apr 24, 2017 2:09 am, edited 1 time in total.
0 x

paroj
OGRE Team Member
OGRE Team Member
Posts: 305
Joined: Sun Mar 30, 2014 2:51 pm
Contact:

Re: [v1.10] PbsMaterial Functions

Post by paroj » Sat Apr 15, 2017 12:58 pm

Normalr means normal+roughness - the rest are typos
0 x

dermont
Orc Shaman
Posts: 748
Joined: Thu Dec 09, 2004 2:51 am

Re: [v1.10] PbsMaterial Functions

Post by dermont » Mon Apr 24, 2017 2:09 am

Thanks.
0 x

Post Reply