Fun with Shaders in BF2142 (DX9) - Part 1: Blood Rain

Channel:
Subscribers:
114
Published on ● Video Link: https://www.youtube.com/watch?v=qS4bqUDTVSI



Battlefield 2142
Game:
Duration: 0:46
647 views
3


Now that I started studying HLSL I can try some things out regarding shaders in Battlefield 2142. I'm sorry for the screenformat, my monitor has an ugly 5:4 ratio.

This one is just (stupid) simple. I started with the rain.fx shaderprogram, modified the "line method" and decided the rain to be drawn with red color onto the screen. It's really easy, one has to modify the pixel shader method to set the pixels red color value to 1, and the green and blue values to 0:

vec4 psLine(LINE_VSOUT input) : COLOR
{
vec4 Color = input.Color;
Color.ra = 1;
Color.gb = 0;
return Color;
}

Well it took some time until I got this to work, 'cause everytime I tried out to modifiy the shader program I had to delete the compiled shaders BF created before and restart the game. Then I had to wait until the Shader Optimization was finished (I think that's the part, where the shaders are compiled). As you may recognize in the video, I had to cut one piece of footage out, it would have lasted over 2 minutes and I don't think it is interesting staring at a static screen. ^^

In Part 2 I will try to play around with the water-shaders, I really want to get some nice effects with it. :D

And no... there is no reference to Blood Rayne in the video's title. :P







Tags:
bf2142
battlefield
2142
mod
pixel
shader
belgrade



Other Statistics

Battlefield 2142 Statistics For Rav3n

At this time, Rav3n has 2,599 views for Battlefield 2142 spread across 5 videos. Less than an hour worth of Battlefield 2142 videos were uploaded to his channel, or 5.76% of the total watchable video on Rav3n's YouTube channel.