def _loadFilters(self): self.terrain.setShaderInput('waterlevel', self._water_level) # load default shaders cf = CommonFilters(base.win, base.cam) # bloomSize cf.setBloom(size='small', desat=0.7, intensity=1.5, mintrigger=0.6, maxtrigger=0.95) # hdrtype: render.setAttrib(LightRampAttrib.makeHdr1()) # perpixel: render.setShaderAuto()
def _loadFilters(self): self.terrain.setShaderInput('waterlevel', self._water_level) # load default shaders cf = CommonFilters(base.win, base.cam) #bloomSize cf.setBloom(size='small', desat=0.7, intensity=1.5, mintrigger=0.6, maxtrigger=0.95) #hdrtype: render.setAttrib(LightRampAttrib.makeHdr1()) #perpixel: render.setShaderAuto()
def stop(self): if self.hdrtype!=None: render.clearAttrib(LightRampAttrib.getClassType()) if self.perpixel: render.setShaderOff() if self.bloomSize!=None: self.cf.delBloom() if self.showbuffers: base.bufferViewer.toggleEnable()