-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[更新Qt版本及OpenGL着色器文件]: 更新Qt版本至6.7.2,并修改OpenGL着色器文件的路径和扩展名
- 更新了`action.yml`文件中的Qt版本默认值由`6.7.0`至`6.7.2` - 调整了`cmake/qt.cmake`文件,将Qt的路径从`6.7.0`变更为`6.7.2`,适用于不同操作系统 - 删除并重新创建了OpenGL着色器文件,将`.frag`和`.vert`文件扩展名更改为`.glsl`,并更新了`openglview.cc`中的引用 - 更新了`shader.qrc`文件,以包含新的着色器文件路径 - 移除了旧的着色器文件`texture.frag`和`texture.vert`,并添加了新的着色器文件`texture_frag.glsl`和`texture_vert.glsl` - 更新了`vcpkg.json`文件,将内置基线从`dee924de74e81388140a53c32a919ecec57d20ab`变更为`fe1cde61e971d53c9687cf9a46308f8f55da19fa`
- Loading branch information
Showing
9 changed files
with
46 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
if(CMAKE_HOST_WIN32) | ||
list(APPEND CMAKE_PREFIX_PATH "C:\\Qt\\6.7.0\\msvc2019_64") | ||
list(APPEND CMAKE_PREFIX_PATH "C:\\Qt\\6.7.2\\msvc2019_64") | ||
elseif(CMAKE_HOST_APPLE) | ||
|
||
elseif(CMAKE_HOST_LINUX) | ||
list(APPEND CMAKE_PREFIX_PATH "/opt/Qt/6.7.0/gcc_64") | ||
list(APPEND CMAKE_PREFIX_PATH "/opt/Qt/6.7.2/gcc_64") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<RCC> | ||
<qresource prefix="/"> | ||
<file>shader/texture.frag</file> | ||
<file>shader/texture.vert</file> | ||
<file>shader/texture_frag.glsl</file> | ||
<file>shader/texture_vert.glsl</file> | ||
</qresource> | ||
</RCC> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#version 330 | ||
#ifdef GL_ARB_shading_language_420pack | ||
#extension GL_ARB_shading_language_420pack : require | ||
#endif | ||
|
||
uniform sampler2D tex; | ||
|
||
layout(location = 0) out vec4 FragColor; | ||
in vec2 TexCord; | ||
|
||
void main() | ||
{ | ||
FragColor = texture(tex, TexCord); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#version 330 | ||
#ifdef GL_ARB_shading_language_420pack | ||
#extension GL_ARB_shading_language_420pack : require | ||
#endif | ||
|
||
uniform mat4 transform; | ||
|
||
out vec2 TexCord; | ||
layout(location = 0) in vec3 aPos; | ||
layout(location = 1) in vec2 aTexCord; | ||
|
||
void main() | ||
{ | ||
TexCord = vec2(aTexCord.x, 1.0 - aTexCord.y); | ||
gl_Position = transform * vec4(aPos, 1.0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters