Water color is dependent on water depth

This commit is contained in:
John 2015-07-01 14:49:07 +03:00
parent be683c8fb0
commit e24791c307
5 changed files with 1 additions and 5 deletions

View file

@ -354,7 +354,6 @@ class Estate(Place.Place):
def __setUnderwaterFog(self):
if base.wantFog:
self.fog.setColor(Vec4(0.0, 0.0, 0.6, 1.0))
self.fog.setLinearRange(0.1, 100.0)
render.setFog(self.fog)
self.loader.hood.sky.setFog(self.fog)

View file

@ -14,7 +14,6 @@ class DDHood(ToonHood):
SKY_FILE = 'phase_3.5/models/props/BR_sky'
SPOOKY_SKY_FILE = 'phase_3.5/models/props/BR_sky'
TITLE_COLOR = (0.8, 0.6, 0.5, 1.0)
underwaterColor = Vec4(0.0, 0.0, 0.6, 1.0)
HOLIDAY_DNA = {
ToontownGlobals.CHRISTMAS: ['phase_6/dna/winter_storage_DD.pdna'],

View file

@ -12,7 +12,6 @@ class OZHood(ToonHood):
SKY_FILE = 'phase_3.5/models/props/TT_sky'
SPOOKY_SKY_FILE = 'phase_3.5/models/props/BR_sky'
TITLE_COLOR = (1.0, 0.5, 0.4, 1.0)
underwaterColor = Vec4(0.0, 0.0, 0.6, 1.0)
def __init__(self, parentFSM, doneEvent, dnaStore, hoodId):
ToonHood.__init__(self, parentFSM, doneEvent, dnaStore, hoodId)

View file

@ -237,7 +237,6 @@ class ToonHood(Hood):
def setUnderwaterFog(self):
if base.wantFog:
self.fog.setColor(self.underwaterColor)
self.fog.setLinearRange(0.1, 100.0)
render.setFog(self.fog)
self.sky.setFog(self.fog)

View file

@ -3,7 +3,7 @@ from direct.task.Task import Task
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import StateData
from direct.fsm import ClassicFSM, State
from direct.fsm import State
import colorsys
class Walk(StateData.StateData):
notify = DirectNotifyGlobal.directNotify.newCategory('Walk')