Posted By: AceX
[IDEA]Water shader - 08/01/14 09:16
Hey there
Firstly,I'm SkullBoy99 .I lost my account
Ok..
This is just an idea!!
When player touch the water,I want water to make some waves at player's position.
How to do this?
We can check the player's position and transfer it to shader for example in vecSkill1 ->player.x,vecSkill2 ->player.y,vecSkill3 ->player.z
We can use <transform> in shader to make some big waves at player's position when is touching the water.
You can take a look at this video
[video:youtube]http://www.youtube.com/watch?v=X3RKti466-A[/video]
Again ,is just an idea..and sorry for bad english
Firstly,I'm SkullBoy99 .I lost my account
Ok..
This is just an idea!!
When player touch the water,I want water to make some waves at player's position.
How to do this?
We can check the player's position and transfer it to shader for example in vecSkill1 ->player.x,vecSkill2 ->player.y,vecSkill3 ->player.z
We can use <transform> in shader to make some big waves at player's position when is touching the water.
You can take a look at this video
[video:youtube]http://www.youtube.com/watch?v=X3RKti466-A[/video]
Again ,is just an idea..and sorry for bad english