X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=Makefile;h=adda4e117a8849264084f034d54b1cc94a249b15;hp=fce6d9afa8f62702ae1b6f1dc8234b734a44ba5b;hb=198fff0ac38a65f6c2db8d9061e47481febfb008;hpb=c99060df01719b24ebd793b149d3c2dc5748cad5 diff --git a/Makefile b/Makefile index fce6d9a..adda4e1 100644 --- a/Makefile +++ b/Makefile @@ -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