Example scene loading
This commit is contained in:
@ -1,8 +1,7 @@
|
||||
find_package(Python3 REQUIRED COMPONENTS Interpreter)
|
||||
|
||||
function(tool_texture target)
|
||||
function(tool_texture target file)
|
||||
# Defaults
|
||||
set(FILE "" )
|
||||
set(FILTER_MIN "")
|
||||
set(FILTER_MAG "")
|
||||
set(WRAP_X "")
|
||||
@ -23,13 +22,13 @@ function(tool_texture target)
|
||||
endforeach()
|
||||
|
||||
# Check for missing args
|
||||
if(NOT DEFINED FILE)
|
||||
if(NOT DEFINED file)
|
||||
message(FATAL_ERROR "Missing FILE input")
|
||||
endif()
|
||||
|
||||
add_custom_target(${target}_texture
|
||||
COMMAND ${DAWN_TOOLS_DIR}/texturetool/texturetool.py
|
||||
--input="${DAWN_ASSETS_SOURCE_DIR}/${FILE}"
|
||||
--input="${DAWN_ASSETS_SOURCE_DIR}/${file}"
|
||||
--output="${DAWN_ASSETS_BUILD_DIR}/${target}.texture"
|
||||
--wrap-x="${WRAP_X}"
|
||||
--wrap-y="${WRAP_Y}"
|
||||
|
Reference in New Issue
Block a user