Onkeen Posted October 21, 2015 Share Posted October 21, 2015 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 ? Geras 1 Link to comment Share on other sites More sharing options...
RoboMat Posted October 21, 2015 Share Posted October 21, 2015 It's doable - I added some scanline and colour changes a while ago: Link to comment Share on other sites More sharing options...
EnigmaGrey Posted October 21, 2015 Share Posted October 21, 2015 It's doable - I added some scanline and colour changes a while ago:And then mischeiviously stole my screenshot. *Shakes fist* Link to comment Share on other sites More sharing options...
RoboMat Posted October 21, 2015 Share Posted October 21, 2015 Prove it! Link to comment Share on other sites More sharing options...
EnigmaGrey Posted October 21, 2015 Share Posted October 21, 2015 Wow, it's been a year. http://imgur.com/sHG0rX2 Man_In_The_Purple_Hat 1 Link to comment Share on other sites More sharing options...
Onkeen Posted October 23, 2015 Author Share Posted October 23, 2015 I added some scanline and colour changes a while ago That's really interesting, do you thing I can use the same technique as you did to have the game in black and white ? Link to comment Share on other sites More sharing options...
RoboMat Posted October 23, 2015 Share Posted October 23, 2015 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. Onkeen 1 Link to comment Share on other sites More sharing options...
Onkeen Posted October 25, 2015 Author Share Posted October 25, 2015 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 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 EnigmaGrey 1 Link to comment Share on other sites More sharing options...
Onkeen Posted November 1, 2015 Author Share Posted November 1, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now