PDA

View Full Version : How to look into shader variables??



3DPrgmer
01-17-2017, 08:50 AM
Hi,

any ideas how to look into shader variables?? My object is complete dark and there is no light. There needs to be something wrong and i need to look into the variables to see where the problem is. Or maybe someone of you can find it by just viewing the code: https://git.rwth-aachen.de/carstenf/OpenGL/tree/master/QtMeshViewer

==EDIT==

i'm stupid. I mixed some variable names. But nonetheless it would be good to look into variables. Can someone explain to me how to do so??

john_connor
01-17-2017, 09:23 AM
But nonetheless it would be good to look into variables. Can someone explain to me how to do so??

take a look at this:
https://www.khronos.org/opengl/wiki/Program_Introspection#Uniforms_and_blocks

arekkusu
01-17-2017, 09:29 AM
You need a debugger (https://msdn.microsoft.com/en-us/library/hh873197.aspx) where you can set breakpoints and view variables.