|
13 | 13 | from tkinter import Tk, messagebox |
14 | 14 |
|
15 | 15 | from ott.Settings import Settings |
| 16 | +from ott.ShaderRegistry import ShaderRegistry |
| 17 | + |
16 | 18 | from toontown.toonbase import ToontownGlobals |
17 | 19 |
|
18 | 20 | TOONTOWN_ONLINE = 0 |
@@ -128,6 +130,8 @@ def __init__(self): |
128 | 130 | loop.run_until_complete(self.__checkUpdates()) |
129 | 131 |
|
130 | 132 | self.__addCullBins() |
| 133 | + |
| 134 | + self.__registerShaders() |
131 | 135 |
|
132 | 136 | # Now we actually start the editor |
133 | 137 | ShowBase.__init__(self) |
@@ -218,6 +222,15 @@ def __addCullBins(): |
218 | 222 | cbm = CullBinManager.getGlobalPtr() |
219 | 223 | cbm.addBin('ground', CullBinManager.BTUnsorted, 18) |
220 | 224 | cbm.addBin('shadow', CullBinManager.BTBackToFront, 19) |
| 225 | + |
| 226 | + @staticmethod |
| 227 | + def __registerShaders(): |
| 228 | + ShaderRegistry.register('render:black_and_white', |
| 229 | + frag = 'resources/shaders/tt_sha_render_bandw.frag', |
| 230 | + vert = 'resources/shaders/tt_sha_render_bandw.vert') |
| 231 | + ShaderRegistry.register('dna:anim_prop', |
| 232 | + frag = 'resources/shaders/tt_sha_dna_anim_prop.frag', |
| 233 | + vert = 'resources/shaders/tt_sha_dna_anim_prop.vert') |
221 | 234 |
|
222 | 235 | async def __checkUpdates(self): |
223 | 236 | import aiohttp, webbrowser |
|
0 commit comments