Skip to content

Commit b24fa31

Browse files
Fix in eye shader that was freezing editor if multiple Ellen where added to a scene
1 parent 77588a7 commit b24fa31

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Assets/3DGamekit/Packages/EyeShader/Shaders/EyeBallsHD.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Shader "Custom/EyeBallsHD" {
103103
float2 maxUVOffset = uvDir * limit;
104104

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

109109
// dx and dy effectively calculate the UV size of a pixel in the texture.

ProjectSettings/ProjectVersion.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
m_EditorVersion: 2020.2.0b12
2-
m_EditorVersionWithRevision: 2020.2.0b12 (92852ae685d8)
1+
m_EditorVersion: 2020.2.0b13
2+
m_EditorVersionWithRevision: 2020.2.0b13 (655e1a328b90)

0 commit comments

Comments
 (0)