[Interest] How to construct a cubemap texture using QOpenGLTexture?

Prashanth Udupa prashanth.udupa at gmail.com
Mon Feb 1 19:55:22 CET 2016


I used Guiseppe's advise and called generateMipMaps() on the environment
texture and some reflections started to show up. Also, I had to update the
shader code to use reflection vectors for picking colors from the cubemap
texture - instead of (normal + position).

I can see reflections on the torus now :-)

[image: pasted1]

/ Prashanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160201/b0f8e11e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pasted1
Type: image/png
Size: 567265 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160201/b0f8e11e/attachment.png>


More information about the Interest mailing list