浏览代码

fixed directional cookie size

/main
Filip Iliescu 8 年前
当前提交
37c9bb35
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/ScriptableRenderPipeline/MobileRenderPipeline/ClassicDeferred/ClassicDeferredPipeline.cs

2
Assets/ScriptableRenderPipeline/MobileRenderPipeline/ClassicDeferred/ClassicDeferredPipeline.cs


} else {
// Setup Light Matrix
float scale = 1.0f;// / light.light.cookieSize;
float scale = 1.0f / light.light.cookieSize;
Matrix4x4 temp1 = Matrix4x4.Scale(new Vector3 (scale, scale, 0.0f));
Matrix4x4 temp2 = Matrix4x4.Translate( new Vector3 (.5f, .5f, 0.0f));
var LightMatrix0 = temp2 * temp1 * worldToLight;

正在加载...
取消
保存