New buyer here. Having a blast so far with the game, and I want to get in on the modding scene, but I'm having trouble finding a specific shader, "plant.vert/frag" (It's used in plant objects and flag/banner objects). This shader does not appear in "Overgrowth/Data/GLSL" and I cannot find it anywhere else in the game's directory. I noticed while searching that this shader only appears on the legacy threads, and I was wondering where it went, or even if it is still editable.
Specifically, I want to create a new shader that moves the cloth of flags and banners in a more realistic way, but in order to do that I'd have to know exactly how Overgrowth handles the various maps and how it moves the vertices of the object, which is why I'd like to take a look at the original.
If the file can no longer be edited, is there anyone that can post a copy from an earlier version, just so that I can get a feel for what the shader does? Or, maybe, if it got concatenated onto another, more general file, can someone tell me which file it is?
Here's a list of all the files in my GLSL folder.
Any further tips on making custom shaders are also appreciated for a beginner like me.
Thanks
Location of plant shader in game files?
-
- Posts: 66
- Joined: Wed Jan 08, 2014 8:09 pm
Re: Location of plant shader in game files?
http://wiki.wolfire.com/index.php/Shader_Creation
Many cool things can be done with shaders, I hope you can modify the plant shader to make your own version of it.
But there are also flags on the game, you may want to take a look at what shaders those banners are using.
Many cool things can be done with shaders, I hope you can modify the plant shader to make your own version of it.
But there are also flags on the game, you may want to take a look at what shaders those banners are using.
Re: Location of plant shader in game files?
I went through and filled out more of that page.
TL;DR - the plant shader is actually "envobject #TANGENT #ALPHA #PLANT"
If you want to edit the plant shader, you'll have to edit envobject.vert and envobject.frag, specifically the sections inside #ifdef PLANT, #ifdef ALPHA, and #ifdef TANGENT blocks (or #if defined(...) for those three).
TL;DR - the plant shader is actually "envobject #TANGENT #ALPHA #PLANT"
If you want to edit the plant shader, you'll have to edit envobject.vert and envobject.frag, specifically the sections inside #ifdef PLANT, #ifdef ALPHA, and #ifdef TANGENT blocks (or #if defined(...) for those three).