diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2019-08-10 23:10:46 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2019-08-10 23:10:46 +0100 |
| commit | 99d4758c33b3c711e0ab252fff00b52e6c6f8252 (patch) | |
| tree | 3df886652fc4b78dc9a9f880d6450368f4dcc27b /src/main/kotlin/WaterParams.kt | |
| parent | 2bbcde7dd370f0f6eb6d8733aab697917f5a8963 (diff) | |
| download | terrain-99d4758c33b3c711e0ab252fff00b52e6c6f8252.tar.xz terrain-99d4758c33b3c711e0ab252fff00b52e6c6f8252.zip | |
Add water effect shader
Diffstat (limited to 'src/main/kotlin/WaterParams.kt')
| -rw-r--r-- | src/main/kotlin/WaterParams.kt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/kotlin/WaterParams.kt b/src/main/kotlin/WaterParams.kt new file mode 100644 index 0000000..61cb2a0 --- /dev/null +++ b/src/main/kotlin/WaterParams.kt @@ -0,0 +1,12 @@ +import info.laht.threekt.math.Color +import info.laht.threekt.math.Vector3 +import info.laht.threekt.textures.Texture + +data class WaterParams( + val waterNormals: Texture, + val alpha: Double, + val sunDirection: Vector3, + val sunColor: Color, + val waterColor: Color, + val distortionScale: Double +)
\ No newline at end of file |