Guest User

Untitled

a guest
Feb 18th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Water
  2.     For W.Water = Each Water
  3.         W\U# = W\U# + (Delta# * 0.00025)
  4.         W\V# = W\V# + (Delta# * 0.0007)
  5.         PositionTexture(W\TexHandle, W\U#, W\V#)
  6.         ;Reflective Water
  7.         CreateReflectTexture(TextureSize, TextureSize)
  8.         HideEntity WaterPlane
  9.         MirrorCamera Camera, WaterPlane                            
  10.         SetBuffer TextureBuffer(ReflectTexture)
  11.        
  12.         If UnderWaterFlag
  13.             EntityAlpha WaterPlane,0.8
  14.         Else
  15.             EntityAlpha WaterPlane,0.65
  16.         EndIf
  17.        
  18.         HideClipplane WaterClipplane
  19.         ShowEntity WaterPlane
  20.        
  21.         EntityTexture WaterPlane, BumpTexture, (BumpTextureFrame Mod 32), 0
  22.         EntityTexture WaterPlane, ReflectTexture, 0, 1
  23.        
  24.         SetBuffer BackBuffer()
  25.        
  26.     Next
Add Comment
Please, Sign In to add comment