Jump to content

Home

Pulsating shader


fattysbox

Recommended Posts

I want to create a shader to pulsate... (Narshadaa/lightshaft)

 

I have a feeling I need to alter some shader settings, but I have no idea how to do that or where to begin... First of all is that even possible?

 

OK, if anyone can direct me to the right tutorial, much will be appreciated.

 

 

 

Thanks,

 

J

 

:D

Link to comment
Share on other sites

Look at a shader that does what you want it to, pulsate. Paste that code into a new shader file. Then, go through and check interesting lines of code in the Q3A shader manual (comes with GtkRadiant, and is on the web...somewhere).

 

In this case, the line you're interested in is rgbGen wave. The shader will probably look something like this:

 

textures/yourmap/pulsatingshader

{

 

any surfaceparms go here

{

map textures/yourmap/base_texture

}

{

map textures/yourmap/pulsating_texture

rgbGen wave 0 1 0 2

}

 

}

 

That's just a rough idea, though.

Link to comment
Share on other sites

Thanks Wedge,

 

However, I am so newb I do not even know how to create my own shader file or even modify it!! Is the way to change a shader through the code on notepad? OK, I'm going to look for tutorials then...

 

:newbie:

 

Thanks anyways,

 

J

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...