浏览代码

throw in lefthand check for completion (for now)

throw in lefthand check for completion (for now)
/main
mmikk 8 年前
当前提交
346242c0
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 8
      Assets/ScriptableRenderLoop/fptl/scrbound.compute

8
Assets/ScriptableRenderLoop/fptl/scrbound.compute


if (bIsSideQuad) { vA2 *= (iAbsSide == 0 ? vScaleXY.x : vScaleXY.y); vB2 *= (iAbsSide == 0 ? vScaleXY.y : vScaleXY.x); }
p0 = vCen + (vA + vB - vC); // vCen + vA is center of face when vScaleXY is 1.0
vN = cross( vB2, 0.5*(vA-vA2) - vC );
vNout = cross( vB2, 0.5*(vA-vA2) - vC );
#ifdef LEFT_HAND_COORDINATES
vNout = -vNout;
#endif
vN = vNout;
}

正在加载...
取消
保存