Texture Shaders Lib

Blitz3D Forums/Blitz3D Programming/Texture Shaders Lib

Quake 3-like texture shaders!

Totally automated, and time-independent. Just create the shader, then call UpdateTexShaders() before your RenderWorld. I called this 'tex' shaders because I intend to add a vertex shader lib. Obviously, a vertex shader will only be able to do things Blitz3D can do, but I have some cool ideas, like pulsating meshes and refracting water.

The final version has scroll, spin, pulse, wave, sawtooth, and strobe shaders.

Get it here:
http://www.leadwerks.com/post/TexShaders.zip

It's nothing you can't do with Blitz code, but putting it all in a DLL standardizes it and makes it accessible from any program. The management is really easy, with just an UpdateTexShaders() call at any time.

CAn you post some screen, please

oh yes. very interesting

It's not going to look like anything in a still screenshot.

Pretty cool. I have no immediate need for effects like this, but this'll be handy to keep in my little war chest.

Josh,

Thanks for this - as Joe said great for the warchest!

:)

IPete2.

Impressive.

Thank you Josh for sharing.

Sergio.

I get a "user lib not found" error, even after putting the decl and dll in the userlib folder, and placing the dll in \system32

I didn't move any files from where they were when I unzipped the archive and it worked fine.

I get a "user lib not found" error, even after putting the decl and dll in the userlib folder, and placing the dll in \system32
Check the .decls file. It has 'dll/texshaders.dll' or something as .lib, change it to just 'texshaders.dll'

Awesome! I can think of tons of uses for this. Thanks Josh!

nice, thanks :)

yes, very nice.
Thanks a lot Josh

All the speed values are based on one second, so 1 second to make a full rotation, scroll across, or whatever.

I think the timing is really cool. :D You don't need these that much in a WW2 game, but I will be using them for making foliage sway and water run.

Next up...vertex shaders! (Or should it be surface shaders?)

Great.

Halo, why not just jack Cg into your phobias lib? real Vertex shaders are great for things like swaying grass etc. (No need to costantly update the agp side mesh, which is slow no matter how you do it.)