summaryrefslogtreecommitdiffstats
path: root/examples/deferred-renderer-qml/FinalEffect.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/deferred-renderer-qml/FinalEffect.qml')
-rw-r--r--examples/deferred-renderer-qml/FinalEffect.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/deferred-renderer-qml/FinalEffect.qml b/examples/deferred-renderer-qml/FinalEffect.qml
index f4a4e984d..632487688 100644
--- a/examples/deferred-renderer-qml/FinalEffect.qml
+++ b/examples/deferred-renderer-qml/FinalEffect.qml
@@ -86,7 +86,7 @@ Effect {
const int lightCount = 5;
uniform PointLightBlock {
PointLight lights[lightCount];
- } pointLights;
+ };
void main()
{
@@ -97,8 +97,8 @@ Effect {
vec4 lightColor;
for (int i = 0; i < lightCount; i++) {
- vec3 s = normalize(pointLights.lights[i].position - pos);
- lightColor += pointLights.lights[i].color * (pointLights.lights[i].intensity * max(dot(s, norm), 0.0));
+ vec3 s = normalize(lights[i].position - pos);
+ lightColor += lights[i].color * (lights[i].intensity * max(dot(s, norm), 0.0));
}
lightColor /= float(lightCount);
fragColor = col * lightColor;
@@ -153,7 +153,7 @@ Effect {
uniform struct
{
PointLight lights[lightCount];
- } pointLights;
+ };
void main()
{
@@ -164,8 +164,8 @@ Effect {
vec4 lightColor;
for (int i = 0; i < lightCount; i++) {
- vec3 s = normalize(pointLights.lights[i].position - pos);
- lightColor += pointLights.lights[i].color * (pointLights.lights[i].intensity * max(dot(s, norm), 0.0));
+ vec3 s = lights[i].position - pos);
+ lightColor += lights[i].color * (lights[i].intensity * max(dot(s, norm), 0.0));
}
lightColor /= float(lightCount);
gl_FragColor = col * lightColor;