Hi guys,
My project is RPG game. I have a Sword(any weapon) object with Bumped Specular Shader.
Basically, when i cast a -for example- ‘Fire Sword’ spell, I want my sword’s surface enchant with fire magic. Not like particle, like that = http://i.ytimg.com/vi/h3j5jyQhV64/maxresdefault.jpg
-Am i need a shader for that? or there is an other way to do that?
-If I need a shader, where can i learn shader scripting? I am good at programming but I didn’t found a good resource for learning shader.
-Also i have a little bit animater perlin noise scripting knowladge. If i use that for weapon enchanting is it too much for CPU Usage?
Thank you :)))
I don’t know, specifically, what the best method to achieve that effect is, but I’d go with a custom shader.
You can start learning about writing shaders here: Cg Programming/Unity - Wikibooks, open books for an open world
Some of the code there is dated and causes errors , but if you’re good at programming, you should be able to handle it.
Also, you can try this:
http://cgcookie.com/unity/cgc-courses/noob-to-pro-shader-writing-for-unity-4-beginner/
If you already have a shader that lets you put an additional transparent additive texture on an object, you can manipulate the tiling and offset of this texture from a script, faking the fire effect animation. It might, or might not work, depending on how your object is uv unwrapped etc, but it’s worth a try if you don’t feel like writing a new shader.
Hope it helps
The quick and dirty way is to just make a second material slot on your object and put a transparent, red colored water effect and translate that.