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
Next revisionBoth sides next revision
water [2020/01/10 09:15] – [Water Material] adminwater [2020/01/14 08:02] – [Example] admin
Line 2: Line 2:
  
 A water surface is not seldomly a popular game component. We do not provide directly a water surface component, but it is quite easy to setup one. A water surface is not seldomly a popular game component. We do not provide directly a water surface component, but it is quite easy to setup one.
 +
 +{{ :water-example.jpg |}}
  
 Water rendering is based on: Water rendering is based on:
Line 8: Line 10:
   * reflection computation   * reflection computation
   * and the water shader itself   * and the water shader itself
- 
 ===== Components ===== ===== Components =====
  
Line 147: Line 148:
   FWaterMaterial.NormalTexture.LoadFromFile(LTexPath + 'water_normal.png');   FWaterMaterial.NormalTexture.LoadFromFile(LTexPath + 'water_normal.png');
   FWaterMaterial.DUDVTexture.LoadFromFile(LTexPath + 'water3-dudv.jpg');   FWaterMaterial.DUDVTexture.LoadFromFile(LTexPath + 'water3-dudv.jpg');
-  FWaterMaterial.DisplacementTexture.LoadFromFile(LTexPath + 'water_height.png'); +  FWaterMaterial.DisplacementMap.LoadFromFile(LTexPath + 'water_height.png'); 
-  FWaterMaterial.SpecularTexture.LoadFromFile(LTexPath + 'water_height.png');+  FWaterMaterial.SpecularMap.LoadFromFile(LTexPath + 'water_height.png');
   FWaterMaterial.FoamTexture.LoadFromFile(LTexPath + 'foam.png');   FWaterMaterial.FoamTexture.LoadFromFile(LTexPath + 'foam.png');
  
Line 158: Line 159:
 end; end;
 </file> </file>
 +
 +Next step: [[bokeh|Bokeh]]