mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-19 22:23:28 +02:00
Version 2.5 - http://otclient.net/showthread.php?tid=238
This commit is contained in:
20
modules/game_shaders/shaders.lua
Normal file
20
modules/game_shaders/shaders.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
function init()
|
||||
-- add manually your shaders from /data/shaders
|
||||
g_shaders.createOutfitShader("default", "/shaders/outfit_default_vertex", "/shaders/outfit_default_fragment")
|
||||
|
||||
--[[ g_shaders.createOutfitShader("stars", "/shaders/outfit_stars_vertex", "/shaders/outfit_stars_fragment")
|
||||
g_shaders.addTexture("stars", "/shaders/stars.png")
|
||||
|
||||
g_shaders.createOutfitShader("gold", "/shaders/outfit_gold_vertex", "/shaders/outfit_gold_fragment")
|
||||
g_shaders.addTexture("gold", "/data/shaders/gold.png")
|
||||
|
||||
g_shaders.createOutfitShader("rainbow", "/shaders/outfit_rainbow_vertex", "/shaders/outfit_rainbow_fragment")
|
||||
g_shaders.addTexture("rainbow", "/shaders/rainbow.png")
|
||||
|
||||
g_shaders.createOutfitShader("line", "/shaders/outfit_line_vertex", "/shaders/outfit_line_fragment")
|
||||
|
||||
g_shaders.createOutfitShader("outline", "/shaders/outfit_outline_vertex", "/shaders/outfit_outline_fragment") ]]--
|
||||
end
|
||||
|
||||
function terminate()
|
||||
end
|
9
modules/game_shaders/shaders.otmod
Normal file
9
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