[Solved] [v1.10] PbsMaterial Functions

Minor issues with the Ogre API that can be trivial to fix
Post Reply
dermont
Bugbear
Posts: 812
Joined: Thu Dec 09, 2004 2:51 am
x 42

[Solved] [v1.10] PbsMaterial Functions

Post by dermont »

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

Re: [v1.10] PbsMaterial Functions

Post by paroj »

Normalr means normal+roughness - the rest are typos
dermont
Bugbear
Posts: 812
Joined: Thu Dec 09, 2004 2:51 am
x 42

Re: [v1.10] PbsMaterial Functions

Post by dermont »

Thanks.
Post Reply