Added demo project to research root motion
This commit is contained in:
@@ -13,6 +13,17 @@ foreach(DIR_NAME ${DIRECTORY_LIST})
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${DIR_NAME})
|
||||
list(APPEND TARGET_PATHS ${CMAKE_CURRENT_BINARY_DIR}/${DIR_NAME})
|
||||
endforeach()
|
||||
set(COPY_FILES main/flare.png)
|
||||
set(TARGET_FILES)
|
||||
foreach(PFILE ${COPY_FILES})
|
||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PFILE}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${PFILE}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${PFILE}
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${PFILE}
|
||||
)
|
||||
list(APPEND TARGET_FILES ${CMAKE_CURRENT_BINARY_DIR}/${PFILE})
|
||||
endforeach()
|
||||
|
||||
#add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/terrain/world_map.png
|
||||
# COMMAND unzip -o ${CMAKE_CURRENT_SOURCE_DIR}/world_map.kra mergedimage.png -d ${CMAKE_CURRENT_BINARY_DIR}/world_map
|
||||
@@ -31,4 +42,4 @@ add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/terrain/brushes.png
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/brushes.kra)
|
||||
list(APPEND TARGET_PATHS ${CMAKE_CURRENT_BINARY_DIR}/terrain/brushes.png)
|
||||
|
||||
add_custom_target(stage_resources ALL DEPENDS ${TARGET_PATHS})
|
||||
add_custom_target(stage_resources ALL DEPENDS ${TARGET_PATHS} ${TARGET_FILES})
|
||||
|
||||
BIN
resources/main/flare.png
Normal file
BIN
resources/main/flare.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
19
resources/main/particles.material
Normal file
19
resources/main/particles.material
Normal file
@@ -0,0 +1,19 @@
|
||||
material Examples/Flare
|
||||
{
|
||||
technique
|
||||
{
|
||||
pass
|
||||
{
|
||||
lighting off
|
||||
scene_blend add
|
||||
depth_write off
|
||||
diffuse vertexcolour
|
||||
|
||||
texture_unit
|
||||
{
|
||||
texture flare.png
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user