旋转需要传递弧度而非角度
This commit is contained in:
parent
05a4f897fa
commit
c667402858
1
3rdpty/dl_assimp.sh
Normal file
1
3rdpty/dl_assimp.sh
Normal file
@ -0,0 +1 @@
|
||||
git clone https://github.com/assimp/assimp.git
|
@ -48,6 +48,7 @@ add_subdirectory(${SPIRV_CROSS_PATH})
|
||||
|
||||
add_subdirectory(3rdpty/MathGeoLib)
|
||||
add_subdirectory(3rdpty/NvTriStrip)
|
||||
add_subdirectory(3rdpty/assimp)
|
||||
add_subdirectory(src)
|
||||
|
||||
SET(ULRE ULRE.Base
|
||||
@ -57,6 +58,7 @@ SET(ULRE ULRE.Base
|
||||
ULRE.Platform
|
||||
MathGeoLib
|
||||
spirv-cross-core
|
||||
assimp
|
||||
# jsoncpp_lib
|
||||
${RENDER_LIBRARY}
|
||||
${Vulkan_LIBRARIES})
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++14")
|
||||
|
||||
add_compile_options(/GR- /arch:AVX2)
|
||||
add_compile_options(/arch:AVX2)
|
||||
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
||||
|
||||
ELSE()
|
||||
|
@ -13,8 +13,8 @@ using namespace hgl::graph;
|
||||
bool SaveToFile(const OSString &filename,VK_NAMESPACE::PipelineCreater *pc);
|
||||
bool LoadFromFile(const OSString &filename,VK_NAMESPACE::PipelineCreater *pc);
|
||||
|
||||
constexpr uint32_t SCREEN_WIDTH=128;
|
||||
constexpr uint32_t SCREEN_HEIGHT=128;
|
||||
constexpr uint32_t SCREEN_WIDTH=1280;
|
||||
constexpr uint32_t SCREEN_HEIGHT=720;
|
||||
|
||||
class TestApp:public VulkanApplicationFramework
|
||||
{
|
||||
@ -152,9 +152,11 @@ private:
|
||||
|
||||
bool InitScene()
|
||||
{
|
||||
const float rad90=hgl_ang2rad(90);
|
||||
|
||||
render_root.Add(db->CreateRenderableInstance(pipeline_line,descriptor_sets,ro_plane_grid[0]));
|
||||
render_root.Add(db->CreateRenderableInstance(pipeline_line,descriptor_sets,ro_plane_grid[1]),rotate(90,0,1,0));
|
||||
render_root.Add(db->CreateRenderableInstance(pipeline_line,descriptor_sets,ro_plane_grid[2]),rotate(90,1,0,0));
|
||||
render_root.Add(db->CreateRenderableInstance(pipeline_line,descriptor_sets,ro_plane_grid[1]),rotate(rad90,0,1,0));
|
||||
render_root.Add(db->CreateRenderableInstance(pipeline_line,descriptor_sets,ro_plane_grid[2]),rotate(rad90,1,0,0));
|
||||
|
||||
render_root.RefreshMatrix();
|
||||
render_root.ExpendToList(&render_list);
|
||||
|
Loading…
x
Reference in New Issue
Block a user