X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=scripts%2Fliquids_water.shader;h=9ec1cf604b87d48f136b8d60c192d7c09c3a5490;hb=7a224ecdc502f6eb63e3d745b801f9f26909a67d;hp=de2c37f920300b9bf553d1ec831259b6da135569;hpb=50b91d5e96564a8fba020da4606a56c703ff38ff;p=xonotic%2Fxonotic-maps.pk3dir.git diff --git a/scripts/liquids_water.shader b/scripts/liquids_water.shader index de2c37f9..9ec1cf60 100644 --- a/scripts/liquids_water.shader +++ b/scripts/liquids_water.shader @@ -12,8 +12,8 @@ textures/liquids_water/water0 q3map_globaltexture { map textures/liquids_water/water0.tga - tcMod scroll 0.07 0.07 tcmod scale 1.2 0.7 + tcMod scroll 0.084 0.049 blendfunc blend } dp_water 0.1 0.25 3 3 1 1 1 1 1 1 0.125 @@ -28,9 +28,10 @@ textures/liquids_water/water0_cubemap surfaceparm nolightmap cull none q3map_globaltexture - qer_editorimage textures/liquids_water/water0_reflect.tga + tessSize 256 + qer_editorimage textures/liquids_water/water0c_reflect.tga { - map textures/liquids_water/water0.tga + map textures/liquids_water/water0c.tga tcMod turb 0 0.4 0 0.08 blendfunc add } @@ -40,6 +41,33 @@ textures/liquids_water/water0_cubemap blendfunc add tcGen lightmap } + dp_water 0.1 0.9 3 3 1 1 1 1 1 1 0.4 +} + +textures/liquids_water/water0_cubemap_alphamod +{ + qer_trans 20 + surfaceparm nomarks + surfaceparm trans + surfaceparm water + surfaceparm nolightmap + cull none + q3map_globaltexture + //tessSize 256 + qer_editorimage textures/liquids_water/water0c_reflect.tga + { + map textures/liquids_water/water0c.tga + tcMod turb 0 0.4 0 0.08 + blendfunc GL_SRC_ALPHA GL_ONE + alphaGen vertex + } + dpreflectcube cubemaps/default/sky + { + map $lightmap + blendfunc add + tcGen lightmap + } + dp_water 0.1 0.9 3 3 1 1 1 1 1 1 0.4 } textures/liquids_water/water1 @@ -54,8 +82,8 @@ textures/liquids_water/water1 q3map_globaltexture { map textures/liquids_water/water1.tga - tcMod scroll 0.07 0.07 tcmod scale 1.2 0.7 + tcMod scroll 0.084 0.049 blendfunc blend } dp_water 0.1 0.25 3 3 1 1 1 1 1 1 0.125 @@ -73,8 +101,8 @@ textures/liquids_water/water2 q3map_globaltexture { map textures/liquids_water/water2.tga - tcMod scroll 0.07 0.07 tcmod scale 1.2 0.7 + tcMod scroll 0.084 0.049 blendfunc blend } dp_water 0.1 0.25 3 3 1 1 1 1 1 1 0.125