XNA Island Water Shader Test
Loading...
83,243
Uploader Comments (handkor)
Top Comments
-
Wow it made me thirsty. Thats some damn fine water you got there
-
What do you mean you can't "open" XNA? It's not a program, lol. It's a bunch of libraries of code (for C#/.NET), aka a graphics API (application programming interface). Do you have Visual Studio or at least Visual C# Express? If not, get it, and pick up some C# programming books or read tutorials. You have to write your own code. This isn't some Warcraft level designer. ;)
see all
All Comments (104)
-
¨THIS IS FROM FAR CRY INSTINKS TAK BACHA
-
minecraft
-
wtf not even minecraft...weird.
-
THIS IS MINECRAFT!
-
make minecraft look like this.
Loading...
I think this is just normal mapping ;) not very difficult
ZER0H8CK 5 months ago
@ZER0H8CK It's normal mapping and fersnel lighting calculation to get the water's color and reflection amount. The normal map is only used to provide the surface normal the rest is used to calculate the fresnel term.
handkor 5 months ago
@handkor Can you please show the code of your shader program?
Pavel1915 1 month ago
@Pavel1915 From a post 3 years ago, this is all you needs:
float fresnel =clamp(1.0-pow(dot(R,WSBumpNormal),0.375),0,1);
float4 final_color = lerp(deepWaterColor, 0.45*cubeMap+surfaceWaterColor*0.6,fresnel);
Where R is the reflected view vector and WSBumpNormal is your world space surface normal.
HDR Cubemap works best for creating the nice glowing spots. There is also a bloom pass in post process.
handkor 1 month ago
do i have to know how to do windows based aplications to start with xna ?i just know how to make console based aplications not windows..anyone ?
yandykun 8 months ago
@yandykun No, the templates to start an XNA project a pretty much self contained. Starting an empty game project does not have much overhead.
handkor 8 months ago