Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 116 vs 117 for /trunk/Source Code/Environment/Water/Headers/Water.h

Diff revisions: vs.
  @@ -53,7 +53,9 @@
53 53 /// Reflector overwrite
54 54 void updateReflection();
55 55 /// Used for many things, such as culling switches, and underwater effects
56 - bool isCameraUnderWater();
56 + inline bool isCameraUnderWater() { return (_eyePos.y < _waterLevel); }
57 + /// Used to set rendering options for the water
58 + inline void setRenderingOptions(const vec3<F32> eyePos = vec3<F32>(0,0,0)) {_eyePos = eyePos;}
57 59
58 60 protected:
59 61 template<typename T>
  @@ -71,6 +73,8 @@
71 73 F32 _farPlane;
72 74 /// cached water level
73 75 F32 _waterLevel;
76 + /// Last known camera position
77 + vec3<F32> _eyePos;
74 78 /// the water's "geometry"
75 79 Quad3D* _plane;
76 80 Texture2D* _texture;