summaryrefslogtreecommitdiffstats
path: root/src/runtimerender/rendererimpl/Qt3DSRendererImplLayerRenderData.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix rendering effects and caching effect textureAntti Määttä2019-10-031-3/+13
| | | | | | | | | | | The new effect texture caching doesn't properly handle inactive effects. Add active effect handling. Task-number: QT3DS-3970 Change-Id: I819c2083a9612574a97cc3c2a280c2273bc78d1b Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Indicate effect shader errors in Editorv2.5.0-beta2Janne Kangas2019-09-301-0/+1
| | | | | | | | | | | | Show a pop-up if a shader fails to compile. Compilation takes place when the effect is added to a object in timeline. Requires both editor and runtime commits. Task-id: QT3DS-3598 Change-Id: Ie9b5a960773c16e00ef99bd0a05e581daf008365 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Provide texture ids through the C++ APIJere Tuliniemi2019-09-301-9/+14
| | | | | | | | | | | | | | Image, subpresentation and layer texture ids are now provided by the presentation via an element path. The cached layer texture id is also stabilized. Instead recreating it every frame, the last effect is just rendered to the premade texture. For each intermediate effect, a new texture is still created. Task-number: QT3DS-3959 Change-Id: I2ad2b81be9ae61373a0bfd963501823f012e9fcc Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix background color clear with shadowsAntti Määttä2019-09-251-1/+3
| | | | | | | | | | | The shadow pass overwrites the clear color so reset it before clear. Task-number: QT3DS-3944 Change-Id: I8f3e65492edd9265f942a975c2e79050c08ba42f Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Implement two-pass rendering for transparent objectsAntti Määttä2019-09-121-44/+87
| | | | | | | | | | | | | | If object has both opaque parts and transparent parts it will be rendered incorrectly due to no z-buffering. Add two-pass method to render the opaque and transparent parts separately. - Add opaque pixel check to transparency check of images. - Add alpha test rendering to default material shadows too. Task-number: QT3DS-3515 Change-Id: I9700b8fb463df9143c5bb9cbe66c7570081ebf5c Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Stereoscopic improvementsKaj Grönholm2019-09-111-11/+17
| | | | | | | | | | | | Make left & right eye camera nodes pointers, fixing e.g. presentations with specular reflection. Use separate textures for fixing temporal AA. Don't allow eye separation become negative. Task-number: QT3DS-3899 Change-Id: Ide4d26d293c37b16048e2691ad51a32b8d4cc276 Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
* Fix issues with AO and multiple layersAntti Määttä2019-08-191-2/+1
| | | | | | | | | | | | The AO was implemented such that only one layer enabled AO parameters and all other used those. Moved the AO parameter update to render pass from prepare pass. Task-number: QT3DS-1888 Change-Id: I2d748351a9d762e66aeb0d483ceed0c203e94d36 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Fix progressive antialiasingAntti Määttä2019-06-281-3/+2
| | | | | | | | | | | | | | There were two problems with the antialiasing. The default materials inside container were never cleared dirty. The subpresentation rendering didn't correctly set the dirty flags when the same subpresentation is rendered multiple times. Task-number: QT3DS-1796 Change-Id: Ice1942ec4b919df009c59aa3ffdfc8efd430db1e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Jari Karppinen <jari.karppinen@qt.io> Reviewed-by: Pasi Keränen <pasi.keranen@qt.io>
* Premultiply clear color before clearAntti Määttä2019-06-201-2/+16
| | | | | | | | | | | | The framebuffer holds premultiplied colors so the clear color must be premultiplied before clearing. Task-number: QT3DS-3689 Change-Id: I5064321d2cacd21bcf9939b7ae195804938859aa Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Jari Karppinen <jari.karppinen@qt.io> Reviewed-by: Pasi Keränen <pasi.keranen@qt.io>
* Long live the slayer!Pasi Keränen2019-06-071-0/+2220
Initial commit of OpenGL Runtime to repository. Based on SHA1 61823aaccc6510699a54b34a2fe3f7523dab3b4e of qt3dstudio repository. Task-number: QT3DS-3600 Change-Id: Iaeb80237399f0e5656a19ebec9d1ab3a681d8832 Reviewed-by: Pasi Keränen <pasi.keranen@qt.io>