• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient Change shader onPositionChange(player, newPos, oldPos)

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
1,713
Solutions
31
Reaction score
965
Location
Santiago - Chile
GitHub
ralke23
Twitch
ralke23
Hi there! There's a script written by oen that shows a message in the window everytime the player changes an area. I wonder if the could be an extra option, that can be enabled or disabled inside the tables, that triggers a change of shader.

Here's the script and the line i'm talking about

This way, inside the table, allow to write types of enviroment (shaders), for example:
LUA:
  {
    from = {x = 1034, y = 1050, z = 6},
    to = {x = 1034, y = 1051, z = 6},
    name = "Orc Fortress"
    biome = "bloom"
  },

So if biome = "bloom" turn on MAP_SHADERS
LUA:
{
    name = 'Map - Bloom',
    frag = 'shaders/fragment/bloom.frag'
},

Reference:

As an extra, only if is possible, whenever you write "none" on name = or biome = it returns and does nothing.
Thanks in advance, Regards! :)
 
Back
Top