From: MirceaKitsune Date: Thu, 4 Aug 2011 23:15:04 +0000 (+0300) Subject: Oooh? Xonotic added cubemap water? We must haz!!! X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fc2f147035f83014a57ee147374bddc65207be0b;p=voretournament%2Fvoretournament.git Oooh? Xonotic added cubemap water? We must haz!!! --- diff --git a/data/scripts/water.shader b/data/scripts/water.shader index bcbdd015..e9be30c8 100644 --- a/data/scripts/water.shader +++ b/data/scripts/water.shader @@ -19,6 +19,30 @@ textures/water/water0 dp_water 0.1 0.8 3 3 1 1 1 1 1 1 0.125 } +textures/water/water0_cubemap +{ + qer_trans 20 + surfaceparm nomarks + surfaceparm trans + surfaceparm water + surfaceparm nolightmap + cull none + q3map_globaltexture + tessSize 256 + qer_editorimage textures/water/water0_reflect.tga + { + map textures/water/water0.tga + tcMod turb 0 0.4 0 0.08 + blendfunc add + } + dpreflectcube cubemaps/default/sky + { + map $lightmap + blendfunc add + tcGen lightmap + } +} + textures/water/water1 { qer_editorimage textures/water/water1.tga diff --git a/data/textures/water/water0_reflect.tga b/data/textures/water/water0_reflect.tga new file mode 100644 index 00000000..d69cdc51 Binary files /dev/null and b/data/textures/water/water0_reflect.tga differ