一款跨平台着色器编辑工具
实现原理&说明
1.BGFX 一款跨平台渲染器
2.IMGUI 一款跨平台GUI框架
3.Cycle Graph Editor 一款基于IMGUI的Node Editor
4.assimp 一款跨平台的模型加载库
5.Native Dialog File 一款跨平台的文件选择库
5.litegraph 一款web平台的shader graph
mkdir vsg
cd vsg
git clone https://github.com/zwluoqi/mobile-visual-shader-editor/
git clone https://github.com/bkaradzic/bgfx
git clone https://github.com/bkaradzic/bx
git clone https://github.com/bkaradzic/assimp@5.0.0
git clone https://github.com/bkaradzic/bimg
cd assimp
mkdir build
cd build
OSX: cmake .. cmake .. -G "Xcode"
WIN: cmake ..
OSX:homebrew install boost WIN:vcpkg install boost
1.直接使用上面下载工程生成Assimp的动态库,然后放入工程
2.或者将下载的工程关联到mobile-visual-shader-editor工程中依赖即可
*注意生成Mac APP的时候有动态库关联错误dyld: Library not loaded: @rpath/libassimp5.dylib,这是Mac自身的问题,重定向库的路径即可
# Type a script or drag a script file from your workspace to insert its path.
install_name_tool -id @executable_path/../Frameworks/libassimpd.5.0.0.dylib libassimpd.5.0.0.dylib
3.或者直接更改工程设置,生成静态库,而不是默认的动态库
Copyright 2021-2021 ZHOU WEI
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.