Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
timmie

Shaders and stuff.

Recommended Posts

Cool, so the shaders are now about where I want them. The only thing really left out there was the shader rotations on flats since the texture coordinates are quite big. So now those rotations happen around the center of the sector so that parameter is usable on flats: http://timmie.squabble.org/screenshots/shader7.avi (DivX video, btw).

I'm all updated to 2.0.63 now, so the only things left are support for the "world panning" parameter for textures and texture alignment on slopes. I think I'm seeing where the funnyness is coming from now, though, so I should be able to fix things fairly easily.

So 0.75 isn't too far away :)

Share this post


Link to post

Like this:

shader LAVA1
{
   layer LAVA1
   {
      vector cycle -0.05 -0.05 0.05 0.05 8.0
      vectorFunc cos sin
      rotate -10 5
   }
   layer LAVA3
   {
      alpha cycle sin 0.5 0.75 2.0
      vector cycle -0.1 0.0 0.1 0.0 16.0
      vectorFunc cos cos
      rotate 10 5
   }
   layer BLOOD1
   {
      alpha 0.35
      vector 0.0 0.5
   }
}

Share this post


Link to post
timmie said:

Like this:

shader LAVA1
{
   layer LAVA1
   {
      vector cycle -0.05 -0.05 0.05 0.05 8.0
      vectorFunc cos sin
      rotate -10 5
   }
   layer LAVA3
   {
      alpha cycle sin 0.5 0.75 2.0
      vector cycle -0.1 0.0 0.1 0.0 16.0
      vectorFunc cos cos
      rotate 10 5
   }
   layer BLOOD1
   {
      alpha 0.35
      vector 0.0 0.5
   }
}


My bad i worded it wrong sorry... How did you make the movie.

Share this post


Link to post

that is correct, sir. FRAPS is awesome :) One day I'll fork over the money for the full version of it, too...

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×