From: havoc Date: Sun, 13 Mar 2011 07:39:13 +0000 (+0000) Subject: fix an HLSL warning X-Git-Tag: xonotic-v0.5.0~418 X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=57396b3277c815b66846f1ddb5b8ec330a1b0c0a;p=xonotic%2Fdarkplaces.git fix an HLSL warning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10915 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=7b63c81acc1718d4694dc3d839753c4cf5f5c751 --- diff --git a/shader_hlsl.h b/shader_hlsl.h index 3e7ab43d..2125d0b6 100644 --- a/shader_hlsl.h +++ b/shader_hlsl.h @@ -1450,7 +1450,7 @@ "#endif\n" "\n" "#ifdef USEFOG\n" -" color.rgb = FogVertex(color, FogColor, EyeVectorModelSpaceFogPlaneVertexDist.xyz, EyeVectorModelSpaceFogPlaneVertexDist.w, FogRangeRecip, FogPlaneViewDist, FogHeightFade, Texture_FogMask, Texture_FogHeightTexture);\n" +" color.rgb = half3(FogVertex(color, FogColor, EyeVectorModelSpaceFogPlaneVertexDist.xyz, EyeVectorModelSpaceFogPlaneVertexDist.w, FogRangeRecip, FogPlaneViewDist, FogHeightFade, Texture_FogMask, Texture_FogHeightTexture));\n" "#endif\n" "\n" " // reflection must come last because it already contains exactly the correct fog (the reflection render preserves camera distance from the plane, it only flips the side) and ContrastBoost/SceneBrightness\n"