nitinagarwal / mesh_slicer

A simple UI to slice any mesh in any arbitrary direction
14 stars 1 forks source link

Brain lacks shader (shows as black) #3

Open celstark opened 5 years ago

celstark commented 5 years ago

After a seemingly successful compile, the loaded brain would come up looking purely black and you'd get some runtime error saying "ERROR: PROGRAM_LINKING_ERROR" and pointing you to "error C5145: must write to gl_Position".

A bit of googling turned up: https://stackoverflow.com/questions/25818858/opengl-3-3-glsl-c-error-must-write-to-gl-position

There will be a more elegant solution, but modifying main.cpp ~ line 440 to have the paths to the OpenGL shaders be absolute rather than relative fixed things up. I now have shaded brains...