Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
water [2020/01/24 09:36] adminwater [2020/06/02 14:52] – [Example] admin
Line 54: Line 54:
 ==== Water Material ==== ==== Water Material ====
  
-Finally of course we need a material shader (TGorillaWaterMaterialSource), which is able to merge all components together.+Finally of course we need a material shader (TGorillaWaterMaterialSource), which is able to merge all components together. The material source is inherited from the TGorillaDefaultMaterialSource and supports multiple light sources and the different shading models.
  
 For computing waves, riffles and foam the shader needs a few textures: For computing waves, riffles and foam the shader needs a few textures:
Line 100: Line 100:
  
 ===== Example ===== ===== Example =====
 +
 +{{youtube>HGlyOlVD28I?medium}}
  
 Take a look at this example code for a complex water surface setup. Take a look at this example code for a complex water surface setup.