史不拉雞不拉史
2025年1月19日 星期日
這裡再度開張,
twitter(x)實在是不適合寫一些長內容的文章, 所以有關技術的東西都改寫到這邊
預計是acan相關的東西
2014年5月8日 星期四
Some shader magic...
From
color.a *= step(0, 1.0 - max(clipFactor.x, clipFactor.y));
into:
color.a *= saturate(sign(1.0 - max(clipFactor.x, clipFactor.y)) + 1);
hmm...
2013年8月9日 星期五
Create Google Breakpad Symbol file
#!/bin/sh
MODULE=""
ID=""
LIB=""
SYM=$1.sym
SYM_DIR=""
for SO in $(find obj/local -mindepth 1 \( -name $1 -a -prune -type f \) -print)
do
dump_syms $SO > $SYM
MODULE=$(head -n 1 $SYM)
ID=$(echo $MODULE | awk '{print $4}')
LIB=$(echo $MODULE | awk '{print $5}')
SYMDIR=symbols/$LIB/$ID
mkdir -p $SYMDIR
mv $SYM $SYMDIR
done
2013年4月7日 星期日
ps3 controller official driver
In brief:
Sony just put official ps3 controller driver in Playstation Mobile Development Kit.
You just only need to register an account to be a developer and you can download it.
Following the instruction then you can use ps3 controller on your PC.
2012年10月30日 星期二
cygwin fix permission
修正在cygwin下面的檔案權限...
參數是路徑
#!/bin/sh
find $1 -type d -print0 | xargs -0 chmod 755
find $1 -type f -print0 | xargs -0 chmod 644
find $1 -name '*.sh' -print0 | xargs -0 chmod 744
會修改指定路徑下的所有目錄權限為rwxr-xr-x
所有檔案權限rw-r--r--
所有sh檔rwxr--r--
2012年8月31日 星期五
unity用NativeActivity時ui event沒反應的解法
source:
http://answers.unity3d.com/questions/309908/is-it-possible-to-add-java-ui-to-unity.html
修改AndroidManifest.xml
<
meta-data
android:name
=
"unityplayer.ForwardNativeEventsToDalvik"
android:value
=
"true"
/>
就ok
2012年8月29日 星期三
解決android ddms / draw9patch 沒辦法在windows x64下正常啟動
加入環境變數JAVA_HOME=你的jdk安裝位置
較舊的文章
首頁
訂閱:
文章 (Atom)