diff --git a/base/renderprogs/interactionSM.pixel b/base/renderprogs/interactionSM.pixel index 9b1e1537..db40f3ac 100644 --- a/base/renderprogs/interactionSM.pixel +++ b/base/renderprogs/interactionSM.pixel @@ -249,7 +249,7 @@ void main( PS_IN fragment, out PS_OUT result ) float shadow = 0.0; // RB: casting a float to int and using it as index can really kill the performance ... - int numSamples = 12; //int(rpScreenCorrectionFactor.w); + float numSamples = 12.0; //int(rpScreenCorrectionFactor.w); float stepSize = 1.0 / numSamples; float4 jitterTC = ( fragment.position * rpScreenCorrectionFactor ) + rpJitterTexOffset; diff --git a/neo/renderer/RenderProgs_embedded.h b/neo/renderer/RenderProgs_embedded.h index 025d74ff..3c7a375a 100644 --- a/neo/renderer/RenderProgs_embedded.h +++ b/neo/renderer/RenderProgs_embedded.h @@ -4424,7 +4424,7 @@ static const cgShaderDef_t cg_renderprogs[] = " float shadow = 0.0;\n" " \n" " // RB: casting a float to int and using it as index can really kill the performance ...\n" - " int numSamples = 12; //int(rpScreenCorrectionFactor.w);\n" + " float numSamples = 12.0; //int(rpScreenCorrectionFactor.w);\n" " float stepSize = 1.0 / numSamples;\n" " \n" " float4 jitterTC = ( fragment.position * rpScreenCorrectionFactor ) + rpJitterTexOffset;\n"