PDA

View Full Version : Resources to learn Shaders



kung foo man
23rd January 2014, 05:31
Hey all,

since CoD2 supports .hlsw-shaders there should be some shader-knowledge in here for awesome effects in CoD 2/4/5 (even 1/UO) :)

Here you can learn shaders instantly (needs some modern browser with WebGL):

Sinus wave: http://glsl.heroku.com/e#13720.0
Text in fragment shader: https://www.shadertoy.com/view/XdXGRB
Creepy mountains: https://www.shadertoy.com/view/4sSGWm
Rasterizer: https://www.shadertoy.com/view/XdlGzn#

Of course this is perfect for learning 3d math (vectors, matrizes) also!

pluXy
23rd January 2014, 17:38
Any idea of how to implement this custom shaders ingame? so far I remember that there is a waving flag shader in game that you could load it using the templates from deffiles and some other options in assman.

I've been looking around this templates and this ones are related to techniquesets and this others to the .hlsl files, the code doesn't seem to be very hard but there is some stuff that i've got no clue why is there...

Any ideas? easier way to get them ingame?

serthy
23rd January 2014, 17:51
1 or 2 yrs ago i managed to get a modified shader working in cod2 but i skipped it since its dx9 only iirc

the first link is pretty usefull, thx for this

kung foo man
30th January 2014, 09:00
This one even supports vertex shaders: http://codedstructure.net/projects/webgl_shader_lab/