From 55ed12f8d1eb6887d348be03aee5573d44177ffb Mon Sep 17 00:00:00 2001 From: Michael Sartain Date: Thu, 2 Oct 2014 08:25:55 -0700 Subject: Updated the SDK with the latest code from the TF and HL2 branches. --- mp/src/materialsystem/stdshaders/water.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mp/src/materialsystem/stdshaders/water.cpp') diff --git a/mp/src/materialsystem/stdshaders/water.cpp b/mp/src/materialsystem/stdshaders/water.cpp index 92a26375..11353577 100644 --- a/mp/src/materialsystem/stdshaders/water.cpp +++ b/mp/src/materialsystem/stdshaders/water.cpp @@ -488,9 +488,9 @@ BEGIN_VS_SHADER( Water_DX90, float cheapWaterEndDistance = params[CHEAPWATERENDDISTANCE]->GetFloatValue(); float cheapWaterParams[4] = { - cheapWaterStartDistance * VSHADER_VECT_SCALE, - cheapWaterEndDistance * VSHADER_VECT_SCALE, - PSHADER_VECT_SCALE / ( cheapWaterEndDistance - cheapWaterStartDistance ), + (float)(cheapWaterStartDistance * VSHADER_VECT_SCALE), + (float)(cheapWaterEndDistance * VSHADER_VECT_SCALE), + (float)(PSHADER_VECT_SCALE / ( cheapWaterEndDistance - cheapWaterStartDistance )), cheapWaterStartDistance / ( cheapWaterEndDistance - cheapWaterStartDistance ), }; pShaderAPI->SetPixelShaderConstant( 1, cheapWaterParams ); -- cgit v1.2.3