Skip to content

Commit 83b4bc4

Browse files
committed
Fixed THE GLOW
1 parent fe99656 commit 83b4bc4

File tree

3 files changed

+9
-215
lines changed

3 files changed

+9
-215
lines changed

.idea/.idea.unity-demoscene/.idea/contentModel.xml

Lines changed: 2 additions & 210 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Demoscene/Projects/TheGlow/TheGlow.unity

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,8 +1076,8 @@ Transform:
10761076
m_CorrespondingSourceObject: {fileID: 0}
10771077
m_PrefabInternal: {fileID: 0}
10781078
m_GameObject: {fileID: 1894765943}
1079-
m_LocalRotation: {x: 0.3079131, y: -0.37854007, z: 0.13516438, w: 0.8623384}
1080-
m_LocalPosition: {x: -0.5696215, y: 4.152282, z: 2.5136218}
1079+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
1080+
m_LocalPosition: {x: 0, y: 0, z: 1}
10811081
m_LocalScale: {x: 1, y: 1, z: 1}
10821082
m_Children: []
10831083
m_Father: {fileID: 267027280}

Assets/Demoscene/Projects/TheGlow/TheGlowWorld.shader

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Tags
3232
"DisableBatching" = "True"
3333
}
3434

35+
Cull Off
36+
3537
CGINCLUDE
3638

3739
#define WORLD_SPACE
@@ -113,12 +115,12 @@ inline void PostEffect(RaymarchInfo ray, inout PostEffectOutput o)
113115
float a = frac(4.0 * ray.endPos.y - 2.0 * _Time.x - 0.5);
114116
float width = 0.04;
115117
o.emission = _SlideEmission * abs(sin(PI * 12.0 * _Time.x)) * step(a, width) * ((a + 0.5 * width) / width);
116-
118+
117119
if (abs(dInnerPillar(ray.endPos)) < ray.minDistance)
118120
{
119121
o.emission = _InnerEmission * abs(sin(PI * 24.0 * _Time.x));
120122
}
121-
123+
122124
if (abs(dFloor(ray.endPos)) < ray.minDistance)
123125
{
124126
o.diffuse = _FloorDiffuse;
@@ -160,4 +162,4 @@ Fallback Off
160162

161163
CustomEditor "uShaderTemplate.MaterialEditor"
162164

163-
}
165+
}

0 commit comments

Comments
 (0)