mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 06:34:55 +02:00
fix items, map, protocls
This commit is contained in:
25
800OTClient/modules/game_shaders/shaders.lua
Normal file
25
800OTClient/modules/game_shaders/shaders.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
function init()
|
||||
-- add manually your shaders from /data/shaders
|
||||
|
||||
-- map shaders
|
||||
g_shaders.createShader("map_default", "/shaders/map_default_vertex", "/shaders/map_default_fragment")
|
||||
|
||||
g_shaders.createShader("map_rainbow", "/shaders/map_rainbow_vertex", "/shaders/map_rainbow_fragment")
|
||||
g_shaders.addTexture("map_rainbow", "/images/shaders/rainbow.png")
|
||||
|
||||
-- use modules.game_interface.gameMapPanel:setShader("map_rainbow") to set shader
|
||||
|
||||
-- outfit shaders
|
||||
g_shaders.createOutfitShader("outfit_default", "/shaders/outfit_default_vertex", "/shaders/outfit_default_fragment")
|
||||
|
||||
g_shaders.createOutfitShader("outfit_rainbow", "/shaders/outfit_rainbow_vertex", "/shaders/outfit_rainbow_fragment")
|
||||
g_shaders.addTexture("outfit_rainbow", "/images/shaders/rainbow.png")
|
||||
|
||||
-- you can use creature:setOutfitShader("outfit_rainbow") to set shader
|
||||
|
||||
end
|
||||
|
||||
function terminate()
|
||||
end
|
||||
|
||||
|
9
800OTClient/modules/game_shaders/shaders.otmod
Normal file
9
800OTClient/modules/game_shaders/shaders.otmod
Normal file
@@ -0,0 +1,9 @@
|
||||
Module
|
||||
name: game_shaders
|
||||
description: Load shaders
|
||||
author: otclientv8
|
||||
website: http://otclient.ovh
|
||||
scripts: [ shaders ]
|
||||
sandboxed: true
|
||||
@onLoad: init()
|
||||
@onUnload: terminate()
|
Reference in New Issue
Block a user