Jump to content

Are the Shaders hard-codded or can we mod / manipulate them ?


Onkeen

Recommended Posts

Hi fellow modders and dev,

 

I wanted to know if we can manipulate the shaders with mods ? or are they to deep inside the game code like moodles ?

 

I would love to be able to manipulate colors and contrasts in order to make a light sepia filter to make a early 60's apocalypse themed mod, or maybe a daltonian-friendly filter ! Or a green colored filter with high contrast for night vision glasses !  :-)

 

I have a lot of ideas but don't have the time to start something and then leave it because it is not moddable for the moment.

 

Let me know if we can work with shaders and how much it's modable. And if you already have worked with it, can you give me some advices ?  ;-)

Link to comment
Share on other sites

You should be able to do it. I think I wrote shaders for sepia, black & white and inverted colors ... EnigmaGrey might still have the shader code.

 

Wow great to know that it's possible to affect colors, even more if it's alredy done  :eek:

 

If EnigmaGrey still have the code, is it okay if I use it in the vision related mod I'm working on ? (with credits of course)

 

Anyway it's a good news :)

Link to comment
Share on other sites

Soooo, after a long time testing, it appears that we can modify shaders, and that's cool... But the downside is that sharders are coded in .vert / .frag files while the rest is coded in lua code. So even if I can modify values directly and make the shader I want, I cant use a condition like player:hasTrait("colorblind") to modify the shaders under certain circumstances.

 

So for now I don't see how I could use the special shader I have created in a mod, it's a bit sad, and if you have any ideas on how to modify the vec3 / 4 shaders values from lua code, I'm all ears. But I don't think shaders code and lua mods are compatible  :???: I hope it will be possible in a near future  :-)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...