summaryrefslogtreecommitdiffstats
path: root/src/render/backends/gl/Qt3DSOpenGLExtensions.h
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2019-08-29 15:03:13 +0300
committerAntti Määttä <antti.maatta@qt.io>2019-09-12 14:29:39 +0300
commitbc4a0aa611242083403fd11f791f51cbab8d4f3a (patch)
tree3fa11a231a382513560f84db5a8b7999dd84d94b /src/render/backends/gl/Qt3DSOpenGLExtensions.h
parent18138ffc6b063e94b792ef61cbe310f90ea21287 (diff)
Implement two-pass rendering for transparent objects
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>
Diffstat (limited to 'src/render/backends/gl/Qt3DSOpenGLExtensions.h')
-rw-r--r--src/render/backends/gl/Qt3DSOpenGLExtensions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/backends/gl/Qt3DSOpenGLExtensions.h b/src/render/backends/gl/Qt3DSOpenGLExtensions.h
index c9ba76a..e79fe1b 100644
--- a/src/render/backends/gl/Qt3DSOpenGLExtensions.h
+++ b/src/render/backends/gl/Qt3DSOpenGLExtensions.h
@@ -134,7 +134,7 @@ class Qt3DSOpenGLES2Extensions : public Qt3DSOpenGLExtensions
public:
Qt3DSOpenGLES2Extensions();
- // tesselation shader
+ // tessellation shader
void glPatchParameteriEXT(GLenum pname, GLint value);
// timer