Skip to content

CthulhuBaba/LiteWater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

LiteWater

LiteWater is a simple infinite water template for Flax Engine users.

-IMPORTANT! There is a bug in version 1.6 of the engine that prevents this project from working correctly.
-So you should use the "Master Branch" (Dailybuild) version of the engine.

Here is a quick preview:

watergif

You can also take a closer look by watching the video below.

If you want to take a more closer look, you can download the demo executable from HERE

What does it offer?

  • Good looking infinite and fully customizable sea with VTF.

You can customize it as you wish. There are also 8 different instances ready.

exp

Some important info:

  • Does not include FFT. It is heightmap based.
  • Projected Vertex method is not used, it is model/tesellation based.

How To Integrate?

  • Copy the "LiteWaterContent" folder into your project's "content" folder
  • Copy "CustomDepth.cs", "CustomRefraction.cs" and "Water.cs" files, to your project's source/game folder.
  • Add Water model to your scene, then attach the "Water" script to the model.
  • Attach the "WaterShader" to the model.
  • Be sure water model not casting any shadow.

cast

  • Set the water layer as "Bullets" or another layer which you prefer.

layer

  • Add a camera then attach the "Custom Depth" script to it. And under the "Render Layer Mask" uncheck the "Bullets" layer.

bullets

  • Add a camera then attach the "Custom refraction" script to it. And under the "Render Layer Mask" uncheck the "Bullets" layer.
  • Select one of the instances (lets say: "WaterSet4") from "Instances" folder and attach it to the water. DONE!

If it seemed too complicated, you can watch the video below.

License

Feel free to use for your projects. Credits are welcome but not necessary.

Note: Some skyboxes were taken from here. They're free but I still wanted you to know.

Contact

You can reach me via pantharay@gmail.com. Have fun!

Emre

About

Water Template for Flax Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages