home *** CD-ROM | disk | FTP | other *** search
/ Game Level Design / GLDesign.bin / Software / UnrealEngine2Runtime / UE2Runtime-22262001_Demo.exe / Fire / Classes / WaterTexture.uc < prev    next >
Text File  |  2003-10-22  |  3KB  |  86 lines

  1. //=======================================================================================
  2. //  WaterTexture: Base class for fractal water textures. Parent of Wave- and WetTexture.
  3. //  This is a built-in Unreal class and it shouldn't be modified.
  4. //=======================================================================================
  5.  
  6. class WaterTexture extends FractalTexture
  7.     native
  8.     noexport
  9.     abstract;
  10.  
  11. //
  12. // Water drops.
  13. //
  14.  
  15. enum WDrop
  16. {
  17.     DROP_FixedDepth            , // Fixed depth spot, A=depth
  18.     DROP_PhaseSpot            , // Phased depth spot, A=frequency B=phase
  19.     DROP_ShallowSpot        , // Shallower phased depth spot, A=frequency B=phase
  20.     DROP_HalfAmpl           , // Half-amplitude (only 128+ values)
  21.     DROP_RandomMover        , // Randomly moves around
  22.     DROP_FixedRandomSpot    , // Fixed spot with random output
  23.     DROP_WhirlyThing        , // Moves in small circles, A=speed B=depth
  24.     DROP_BigWhirly            , // Moves in large circles, A=speed B=depth
  25.     DROP_HorizontalLine        , // Horizontal line segment
  26.     DROP_VerticalLine        , // Vertical line segment
  27.     DROP_DiagonalLine1        , // Diagonal '/'
  28.     DROP_DiagonalLine2        , // Diagonal '\'
  29.     DROP_HorizontalOsc        , // Horizontal oscillating line segment
  30.     DROP_VerticalOsc        , // Vertical oscillating line segment
  31.     DROP_DiagonalOsc1        , // Diagonal oscillating '/'
  32.     DROP_DiagonalOsc2        , // Diagonal oscillating '\'
  33.     DROP_RainDrops            , // General random raindrops, A=depth B=distribution radius
  34.     DROP_AreaClamp          , // Clamp spots to indicate shallow/dry areas
  35.     DROP_LeakyTap            ,
  36.     DROP_DrippyTap            ,
  37. };
  38.  
  39.  
  40. //
  41. // Information about a single drop.
  42. //
  43.  
  44. struct ADrop
  45. {
  46.     var WDrop Type;   // Drop type.
  47.     var byte  Depth;  // Drop heat.
  48.     var byte  X;      // Spark X location (0 - Xdimension-1).
  49.     var byte  Y;      // Spark Y location (0 - Ydimension-1).
  50.  
  51.     var byte  ByteA;  // X-speed.
  52.     var byte  ByteB;  // Y-speed.
  53.     var byte  ByteC;  // Age, Emitter freq. etc.
  54.     var byte  ByteD;  // Exp.Time etc.
  55. };
  56.  
  57.  
  58. //
  59. // Water parameters.
  60. //
  61.  
  62. var(WaterPaint)                    WDrop  DropType;
  63. var(WaterPaint)                    byte   WaveAmp;
  64.  
  65. var(WaterPaint)                    byte   FX_Frequency;
  66. var(WaterPaint)                    byte   FX_Phase;
  67. var(WaterPaint)                    byte   FX_Amplitude;
  68. var(WaterPaint)                    byte   FX_Speed;
  69. var(WaterPaint)                    byte   FX_Radius;
  70. var(WaterPaint)                    byte   FX_Size;
  71. var(WaterPaint)                    byte   FX_Depth;
  72. var(WaterPaint)                 byte   FX_Time;
  73.  
  74. var                                int    NumDrops;
  75. var                                ADrop  Drops[256];
  76.  
  77. var                     transient   int    SourceFields;
  78. var                    transient   byte   RenderTable[1028];
  79. var                    transient    byte   WaterTable[1536];
  80. var                    transient    byte   WaterParity;
  81. var                    transient    int    OldWaveAmp;
  82.  
  83. defaultproperties
  84. {
  85. }
  86.