Skip to content

Commit

Permalink
Fix in eye shader that was freezing editor if multiple Ellen where ad…
Browse files Browse the repository at this point in the history
…ded to a scene
  • Loading branch information
UnityGuillaume committed Dec 3, 2020
1 parent 77588a7 commit b24fa31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Shader "Custom/EyeBallsHD" {
float2 maxUVOffset = uvDir * limit;

//choose the amount of steps we need based on angle to surface.
int maxSteps = lerp(40, 5, dot(viewDir, normal));
int maxSteps = lerp(40, 5, clamp(dot(viewDir, normal), 0, 1));
float rayStep = 1.0 / (float)maxSteps;

// dx and dy effectively calculate the UV size of a pixel in the texture.
Expand Down
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 2020.2.0b12
m_EditorVersionWithRevision: 2020.2.0b12 (92852ae685d8)
m_EditorVersion: 2020.2.0b13
m_EditorVersionWithRevision: 2020.2.0b13 (655e1a328b90)

0 comments on commit b24fa31

Please sign in to comment.