width -> tan($CONEANGLE)
height -> tan($CONEANGLE)
將ShapeLightVolume函式中呼叫clipSuperellipse的參數由
clipSuperellipse(...,width, height,width+wedge, height+hedge, roundness); 改成
clipSuperellipse(...,width-wedge, height-hedge,width, height, roundness);
再將
wedge -> tan($PENUMBRAANGLE)
hedge -> tan($PENUMBRAANGLE)
$CONEANGLE 為 maya中(coneAnle+penumbraAngle)/2/360*PI
No comments:
Post a Comment