Example #1
0
bool CalcRefractedRay(TracingInstance* pLocalData, const ShadingContext& shadingCtx, float refractRatio, KColor& refractColor)
{
	KRay transRay;
	// TODO: implement the refraction computation
	transRay.InitTranslucentRay(shadingCtx, NULL);
	return CalcuShadingByRay(pLocalData, transRay, refractColor, NULL);
}