[Solved] [v1.10] PbsMaterial Functions

Minor issues with the Ogre API that can be trivial to fix

[Solved] [v1.10] PbsMaterial Functions

Postby 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.
dermont
Orc Shaman
 
Posts: 720
Kudos: 28
Joined: 09 Dec 2004

Re: [v1.10] PbsMaterial Functions

Postby paroj » Sat Apr 15, 2017 12:58 pm

Normalr means normal+roughness - the rest are typos
paroj
OGRE Team Member
OGRE Team Member
 
Posts: 204
Kudos: 46
Joined: 30 Mar 2014

Re: [v1.10] PbsMaterial Functions

Postby dermont » Mon Apr 24, 2017 2:09 am

Thanks.
dermont
Orc Shaman
 
Posts: 720
Kudos: 28
Joined: 09 Dec 2004


Return to Papercuts

Who is online

Users browsing this forum: No registered users and 2 guests