Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
OpenGL
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
C-Fu
OpenGL
Commits
f469dff6
Commit
f469dff6
authored
Jan 14, 2017
by
Anakin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added transparency support,
need to sort the transparent things to the back
parent
930c49e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
QtMeshViewer/Resources/fshader.glsl
QtMeshViewer/Resources/fshader.glsl
+3
-1
QtMeshViewer/Source/OglViewerWidget.cpp
QtMeshViewer/Source/OglViewerWidget.cpp
+5
-1
Release/Msh/2.tga
Release/Msh/2.tga
+0
-0
No files found.
QtMeshViewer/Resources/fshader.glsl
View file @
f469dff6
...
...
@@ -11,5 +11,7 @@ varying vec2 v_texcoord;
void
main
()
{
// Set fragment color from texture
gl_FragColor
=
texture2D
(
texture
,
v_texcoord
);
vec4
finalColor
=
vec4
(
texture2D
(
texture
,
v_texcoord
));
gl_FragColor
=
finalColor
;
}
QtMeshViewer/Source/OglViewerWidget.cpp
View file @
f469dff6
...
...
@@ -187,7 +187,11 @@ void OglViewerWidget::initializeGL()
glEnable
(
GL_DEPTH_TEST
);
// Enable back face culling
glEnable
(
GL_CULL_FACE
);
//glEnable(GL_CULL_FACE);
// Enable transparency
glEnable
(
GL_BLEND
);
glBlendFunc
(
GL_SRC_ALPHA
,
GL_ONE_MINUS_SRC_ALPHA
);
m_dataEngine
=
new
GeometryEngine
(
this
);
setConnections
();
...
...
Release/Msh/2.tga
View file @
f469dff6
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment