qtdoc/examples/demos/car-configurator/content/InteriorPointLight.qml

70 lines
1.4 KiB
QML
Raw Permalink Normal View History

Port the latest updates from design studio demo project <CarRendering> The update contains the following changes: * better glow for lights * videoWall reflections fixed * Updates to the UI, buttons and logo position * Fixes on Glitches * FaceLift * New Wheels and BackLights * VideoWall rePositioning * New Car PaintWork + videoWall * BackLight Reflection removal * Desert polishes * Studio Improvements * Smooth Car paint change transitions * ColorButton Start fix * Door openings * Added Trunk and Hood openers * Visibilty of door openers based on camera Angle * Door openers Smooth transitions * Removed Lights from Studio * Reflection Probe ReDone in VideoScene * Door button is smaller and has background blur * Interior colors and Lights * Interior material tweaks * More realistic headlights * New Car paint material * Tiny update to margins for UI * Better carPaint and Window materials * Headlight glass material * New Wheel textures * Front headlight geometry * Added easing to door animations * Door button fix * New Demomode Blending * Headlight decal and material update * Desert Visual updates * Desert scene Custom shadows * Fix new shadows * More Transparent fake shadows * Added a new svg icon for the door and updated the button for it * Tiny update to pebbles and enabled shadow plane inside car * Blended Shadow plane * Added Correct button font * New Default Camera position * Hood shadow animation fixed * Working car shadows Task-number: QTBUG-126959 Pick-to: 6.8 Change-Id: I596f6befeb881c73354306f51feca4faa7c88c6e Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
2024-07-02 15:22:52 +00:00
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
import QtQuick
import QtQuick3D
PointLight {
id: pointLight
color: "#fdffe3"
scope: ev_SportsCar_low
shadowFilter: 93
shadowBias: 1
shadowMapFar: 100
linearFade: 0.2
constantFade: 0.2
shadowFactor: 83
shadowMapQuality: Light.ShadowMapQualityMedium
castsShadow: false
brightness: 7
z: -0
property bool isOn: false
Node {
id: __materialLibrary__
}
states: [
State {
name: "On"
when: isOn
PropertyChanges {
target: pointLight
brightness: 10
}
},
State {
name: "Off"
when: !isOn
PropertyChanges {
target: pointLight
brightness: 0
}
}
]
transitions: [
Transition {
id: transition
ParallelAnimation {
SequentialAnimation {
PauseAnimation {
duration: 0
}
PropertyAnimation {
target: pointLight
property: "brightness"
duration: 2000
}
}
}
to: "*"
from: "*"
}
]
}