From a4015b954355d339d34705b78eda24473edb7662 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 21 Mar 2009 09:45:40 +0000 Subject: [PATCH] Fix weird whitespace/something --- direct/src/filter/CommonFilters.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/direct/src/filter/CommonFilters.py b/direct/src/filter/CommonFilters.py index d0021e2ab5..93e226667f 100644 --- a/direct/src/filter/CommonFilters.py +++ b/direct/src/filter/CommonFilters.py @@ -187,13 +187,14 @@ class CommonFilters: if (configuration.has_key("VolumetricLighting")): text += "float decay = 1.0f;\n" text += "float2 curcoord = l_texcoordC.xy;\n" - text += "float2 lightdir = curcoord - k_casterpos.xy;\n" text += "lightdir *= k_vlparams.y;\n" - text += "half4 sample = tex2D(k_txcolor, curcoord);\n" - text += "float3 vlcolor = sample.rgb * sample.a;\n" - text += "for (int i = 0; i < k_vlparams.x; i++) {\n" - text += " curcoord -= lightdir;\n" - text += " sample = tex2D(k_txcolor, curcoord);\n" - text += " sample *= sample.a * decay;//*weight\n" + text += "float2 lightdir = curcoord - k_casterpos.xy;\n" + text += "lightdir *= k_vlparams.y;\n" + text += "half4 sample = tex2D(k_txcolor, curcoord);\n" + text += "float3 vlcolor = sample.rgb * sample.a;\n" + text += "for (int i = 0; i < k_vlparams.x; i++) {\n" + text += " curcoord -= lightdir;\n" + text += " sample = tex2D(k_txcolor, curcoord);\n" + text += " sample *= sample.a * decay;//*weight\n" text += " vlcolor += sample.rgb;\n" text += " decay *= k_vlparams.z;\n" text += "}\n"