Fog.h 1.3 KB

123456789101112131415161718192021222324
  1. /******************************************************************************
  2. Use 'Fog' to set custom global fog.
  3. /******************************************************************************/
  4. struct FogClass
  5. {
  6. Bool draw , // if draw the fog , true/false , default=false
  7. affect_sky; // if fog affects sky, true/false , default=false
  8. Flt density ; // fog density , 0..1 , default=0.02
  9. Vec color ; // fog color , (0,0,0)..(1,1,1), default=(0.5, 0.5, 0.5)
  10. #if EE_PRIVATE
  11. void Draw(Bool after_sky);
  12. FogClass();
  13. #endif
  14. }extern
  15. Fog; // Global Fog Control
  16. /******************************************************************************/
  17. void FogDraw(C OBox &obox, Flt density, C Vec &color); // draw local 'obox' based fog, with uniform 'density', this can be called only in RM_CLOUD or RM_BLEND rendering modes
  18. void FogDraw(C Ball &ball, Flt density, C Vec &color); // draw local 'ball' based fog, with uniform 'density', this can be called only in RM_CLOUD or RM_BLEND rendering modes
  19. void HeightFogDraw(C OBox &obox, Flt density, C Vec &color); // draw local 'obox' based height fog, with variable 'density', this can be called only in RM_CLOUD or RM_BLEND rendering modes
  20. /******************************************************************************/