Hello! I was installing a couple shaders, but I would like to use more than 2 at once. Is there any simple way, through modding, to add more shader slots? Thanks!
Villager103 wrote:Hello! I was installing a couple shaders, but I would like to use more than 2 at once. Is there any simple way, through modding, to add more shader slots? Thanks!
Okay, here is how to do it :
First, search for all entries with currentshaderi in main.lua and add more variables
Ex (function defaultconfig @ line 1353):
elseif optionsselection == 3 then
currentshaderi1 = currentshaderi1 + 1
if currentshaderi1 > #shaderlist then
currentshaderi1 = 1
end
if shaderlist[currentshaderi1] == "none" then
shaders:set(1, nil)
else
shaders:set(1, shaderlist[currentshaderi1])
end
using the same optionsselection value setted in the previous step.
Repeat the previous step, but by seeking for currentshaderi1 = currentshaderi1 - 1 instead.