jbouny / ocean

Realistic water shader for Three.js

Home Page:http://jeremybouny.fr/ocean/demo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shadow Support

mattlockyer opened this issue · comments

I am curious if your wonderful shader can have shadows support added to it. I cannot seem to get shadowmaps to work however.

I have tried adding the appropriate shader chunks to no avail.

Currently I render shadows on top of the water using another mesh and material, and apply a custom darken blend mode, but I really want to see the shadows displaced with the water to heighten the realism.

Thanks for the shader and any support getting shadows working.