0027633: Visualization, TKOpenGl - point sprites are inconsistent within Core and...
authorkgv <kgv@opencascade.com>
Fri, 24 Jun 2016 08:36:57 +0000 (11:36 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 7 Jul 2016 12:15:50 +0000 (15:15 +0300)
commitfd59283a7b69e7568271fe59860b8175f741c945
tree7f495ee2ec9303e9b511e3a15ccef8bb88daa399
parent1d92133e83d9115bc790ac76aec4e04f8cd63d9f
0027633: Visualization, TKOpenGl - point sprites are inconsistent within Core and Compatible Profiles

OpenGl_ShaderManager::pointSpriteAlphaSrc() now does not return alpha from Red channel
for RGBA marker texture in Core profile.
OpenGl_ShaderManager::prepareStdProgramFlat() - restored code for drawing points without texture.

Built-in GLSL programs now flip .y in shaders instead of
relying on GL_POINT_SPRITE_COORD_ORIGIN unavailable on OpenGL ES.

Added sample markers.tcl (moved from test cases).
Sample now includes marker_kr.png for testing marker orientation.
14 files changed:
data/images/marker_kr.png [new file with mode: 0644]
samples/tcl/markers.tcl [new file with mode: 0644]
src/OpenGl/OpenGl_Context.cxx
src/OpenGl/OpenGl_Context.hxx
src/OpenGl/OpenGl_PrimitiveArray.cxx
src/OpenGl/OpenGl_ShaderManager.cxx
src/OpenGl/OpenGl_ShaderManager.hxx
src/OpenGl/OpenGl_Workspace.cxx
tests/bugs/vis/bug23654_MarkersRecompute
tests/bugs/vis/bug24131_markers [deleted file]
tests/bugs/vis/bug24131_markers_bitmap [new file with mode: 0644]
tests/bugs/vis/bug24131_markers_core [new file with mode: 0644]
tests/bugs/vis/bug24131_markers_glsl [new file with mode: 0644]
tests/bugs/vis/bug24131_markers_sprites [new file with mode: 0644]