opengl shader warning

剛剛遇到的

warning: no rule to process file '$(PROJECT_DIR)/Content/Shaders/DistanceField.fsh' of type sourcecode.glsl for architecture arm7
warning: no rule to process file '$(PROJECT_DIR)/Content/Shaders/DistanceField.vsh' of type sourcecode.glsl for architecture arm7

因為xcode不知道怎麼處理fsh 和vsh ,只要去TARGET->Build Phases->Compile source 把這兩個檔案移掉就行

如果不能build的話,那就到TARGET->Build Phases->Copy Bundle Resources 把這兩個加回去

--
大概是xcode自己沒有clean乾淨的後果,真是莫名其妙的解法
張貼留言