From f28c93051d3bb9a800a4a3a04209aea5f16ab1a9 Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Thu, 7 Dec 2017 10:56:06 +0100 Subject: Convert Tabs -> Spaces and Removed trailing whitespace from effectlib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was done to make syncing the effectlib shaders in 3D Studio with the effectlib shaders in the 2.0 runtime where they had already been sanitized. This makes the diffing process easier, and will also bring things into line with the Qt coding standard. Change-Id: I0c45dcb7110cc31a24cce24d72b53e1d451b701b Reviewed-by: Tomi Korpipää Reviewed-by: Miikka Heikkinen --- src/Runtime/res/effectlib/sampleLight.glsllib | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Runtime/res/effectlib/sampleLight.glsllib') diff --git a/src/Runtime/res/effectlib/sampleLight.glsllib b/src/Runtime/res/effectlib/sampleLight.glsllib index 62fc8b33..3218cdf5 100644 --- a/src/Runtime/res/effectlib/sampleLight.glsllib +++ b/src/Runtime/res/effectlib/sampleLight.glsllib @@ -107,13 +107,13 @@ void sampleLight(in LightSource light, float dist = length(wi); wi = wi / dist; // == normalize(wi); att = 1.0f / (light.constantAttenuation + (light.linearAttenuation + light.quadraticAttenuation * dist) * dist); - /* + /* if (light.spotCutoff < 180.0f) // spot light { float spot = max(0.0f, dot(wi, -light.direction.xyz)); att *= (spot >= cos(light.spotCutoff * PI / 180.0f)) ? pow(spot, light.spotExponent) : 0.0f; } - */ + */ #if QT3DS_ENABLE_SSM if ( light.shadowIdx >= 0 ) att *= sampleCubemap( shadowCubes[light.shadowIdx], light.shadowControls, light.shadowView, light.position.xyz, pos, vec2(1.0, light.shadowControls.z) ); -- cgit v1.2.3