no clue :) just to push it
[demo] / Makefile
index 8d6f87e..adda4e1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ bin = demo
 
 dbg = -g
 opt = -O0
-inc = -Isrc -Iexternal/gmath/src -I/usr/include -Iexternal/libimago/src 
+inc = -Isrc -Iexternal/gmath/src -I/usr/include -Iexternal/libimago/src -I/usr/local/include
 libs = -lGL -lGLEW -lglfw -lvulkan -lassimp -lgmath -limago
 
 CXX = g++
@@ -23,3 +23,16 @@ $(bin): $(obj)
 .PHONY: clean
 clean:
        rm -f $(obj) $(bin) $(dep)
+
+cmpath = data/cubemap
+.PHONY: irradiance_map
+irradiance_map:
+       cmft --inputFacePosX $(cmpath)/cubemap_px.hdr \
+                       --inputFacePosY $(cmpath)/cubemap_py.hdr \
+                       --inputFacePosZ $(cmpath)/cubemap_pz.hdr \
+                       --inputFaceNegX $(cmpath)/cubemap_nx.hdr \
+                       --inputFaceNegY $(cmpath)/cubemap_ny.hdr \
+                       --inputFaceNegZ $(cmpath)/cubemap_nz.hdr \
+                       --filter irradiance \
+                       --output0 $(cmpath)/irradiance_px.hdr \
+                       --output0params hdr,rgbe,facelist