building: fix field office & cog building signs
This commit is contained in:
parent
7e777ca776
commit
d14f6303c0
1 changed files with 2 additions and 2 deletions
|
@ -458,10 +458,10 @@ class DistributedBuilding(DistributedObject.DistributedObject):
|
|||
backgroundNP = loader.loadModel('phase_5/models/modules/suit_sign')
|
||||
backgroundNP.reparentTo(signOrigin)
|
||||
backgroundNP.setPosHprScale(0.0, 0.0, textHeight * 0.8 / zScale, 0.0, 0.0, 0.0, 8.0, 8.0, 8.0 * zScale)
|
||||
backgroundNP.node().setEffect(DecalEffect.make())
|
||||
signTextNodePath = backgroundNP.attachNewNode(textNode.generate())
|
||||
signTextNodePath.setPosHprScale(0.0, 0.0, -0.21 + textHeight * 0.1 / zScale, 0.0, 0.0, 0.0, 0.1, 0.1, 0.1 / zScale)
|
||||
signTextNodePath.setColor(1.0, 1.0, 1.0, 1.0)
|
||||
signTextNodePath.setAttrib(DepthOffsetAttrib.make(1))
|
||||
frontNP = suitBuildingNP.find('**/*_front/+GeomNode;+s')
|
||||
backgroundNP.wrtReparentTo(frontNP)
|
||||
frontNP.node().setEffect(DecalEffect.make())
|
||||
|
@ -558,10 +558,10 @@ class DistributedBuilding(DistributedObject.DistributedObject):
|
|||
backgroundNP = loader.loadModel('phase_5/models/cogdominium/field_office_sign')
|
||||
backgroundNP.reparentTo(signOrigin)
|
||||
backgroundNP.setPosHprScale(0.0, 0.0, -1.2 + textHeight * 0.8 / zScale, 0.0, 0.0, 0.0, 20.0, 8.0, 8.0 * zScale)
|
||||
backgroundNP.node().setEffect(DecalEffect.make())
|
||||
signTextNodePath = backgroundNP.attachNewNode(textNode.generate())
|
||||
signTextNodePath.setPosHprScale(0.0, 0.0, -0.13 + textHeight * 0.1 / zScale, 0.0, 0.0, 0.0, 0.1 * 8.0 / 20.0, 0.1, 0.1 / zScale)
|
||||
signTextNodePath.setColor(1.0, 1.0, 1.0, 1.0)
|
||||
signTextNodePath.setAttrib(DepthOffsetAttrib.make(1))
|
||||
frontNP = suitBuildingNP.find('**/*_front/+GeomNode;+s')
|
||||
backgroundNP.wrtReparentTo(frontNP)
|
||||
frontNP.node().setEffect(DecalEffect.make())
|
||||
|
|
Loading…
Reference in a new issue