Skip to content

Commit

Permalink
Revert "fix: enabling shadows on spotlights now works on vr"
Browse files Browse the repository at this point in the history
This reverts commit 68d77cb.
  • Loading branch information
Kai Wegner committed Nov 14, 2017
1 parent a50f132 commit 75417c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Assets/Scripts/VolumetricLight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ private void SetupSpotLight(VolumetricLightRenderer renderer, Matrix4x4 viewProj

_material.EnableKeyword("SHADOWS_DEPTH");
_commandBuffer.SetGlobalTexture("_ShadowMapTexture", BuiltinRenderTextureType.CurrentActive);
renderer.GlobalCommandBuffer.DrawMesh(mesh, world, _material, 0, pass);
_commandBuffer.SetRenderTarget(renderer.GetVolumeLightBuffer());

_commandBuffer.DrawMesh(mesh, world, _material, 0, pass);

if (CustomRenderEvent != null)
CustomRenderEvent(renderer, this, _commandBuffer, viewProj);
Expand Down

0 comments on commit 75417c6

Please sign in to comment.