浏览代码

fix cookie varients

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

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


// A scale factor setting in Unity of 0.01 would require this to be set to 100. A scale factor setting of 1, is just 1 here.
var matrix = Matrix4x4.TRS (lightPos, Quaternion.identity, new Vector3 (range*PointLightMeshScaleFactor, range*PointLightMeshScaleFactor, range*PointLightMeshScaleFactor));
if (cookie!=null)
if (cookie != null) {
cmd.DisableShaderKeyword ("POINT");
}
if (renderAsQuad) {
cmd.DrawMesh (m_QuadMesh, Matrix4x4.identity, m_DirectionalDeferredLightingMaterial, 0, 0, props);
} else {

var LightMatrix0 = temp2 * temp1 * worldToLight;
props.SetMatrix ("_LightMatrix0", LightMatrix0);
if (cookie != null)
if (cookie != null) {
cmd.DisableShaderKeyword ("DIRECTIONAL");
}
cmd.DrawMesh (m_QuadMesh, Matrix4x4.identity, m_DirectionalDeferredLightingMaterial, 0, 0, props);
}
}

正在加载...
取消
保存