diff options
author | Andy Nichols <andy.nichols@qt.io> | 2017-12-07 10:56:06 +0100 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2017-12-14 06:56:38 +0000 |
commit | f28c93051d3bb9a800a4a3a04209aea5f16ab1a9 (patch) | |
tree | 9ca98aa63d57dea1adb6313f9a745a39caf1278d /src/Runtime/res/effectlib/sampleLight.glsllib | |
parent | 611f47ded9a119edb3a8bed39387958f5fc3a655 (diff) |
Convert Tabs -> Spaces and Removed trailing whitespace from effectlib
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ää <tomi.korpipaa@qt.io>
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Runtime/res/effectlib/sampleLight.glsllib')
-rw-r--r-- | src/Runtime/res/effectlib/sampleLight.glsllib | 4 |
1 files changed, 2 insertions, 2 deletions
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) ); |