Skip to content

Commit 35f70c1

Browse files
committed
mod look
1 parent bd7c001 commit 35f70c1

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

Assets/Demoscene/Projects/2018-07-12-Lava/Lava.mat

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ Material:
2525
- _ShadowExtraBias: 0.802
2626
- _ShadowLoop: 10
2727
- _ShadowMinDistance: 0.01
28-
- _Threshold: 0.85
28+
- _Threshold: 0.82
2929
m_Colors:
30-
- _Diffuse: {r: 0.3207547, g: 0.13768245, b: 0.13768245, a: 1}
30+
- _Diffuse: {r: 0.9528302, g: 0.004494493, b: 0.004494493, a: 1}
3131
- _Emission: {r: 0, g: 0, b: 0, a: 0}
32-
- _Specular: {r: 0, g: 0, b: 0, a: 1}
32+
- _Lava: {r: 1, g: 0.24644177, b: 0, a: 1}
33+
- _Specular: {r: 0, g: 0, b: 0, a: 0}

Assets/Demoscene/Projects/2018-07-12-Lava/Lava.shader

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Properties
1919
// _Color2("Color2", Color) = (1.0, 1.0, 1.0, 1.0)
2020
_Threshold("Threshold", Range(-5.0, 5.0)) = 0.5
2121
_Power("Power", Range(0.0, 1.0)) = 0.5
22+
[HDR] _Lava("Lava", Color) = (1.0, 0.0, 0.0, 1.0)
2223
// @endblock
2324
}
2425

@@ -61,9 +62,10 @@ inline float DistanceFunction(float3 pos)
6162
// @endblock
6263

6364
// @block PostEffect
65+
float4 _Lava;
6466
inline void PostEffect(RaymarchInfo ray, inout PostEffectOutput o)
6567
{
66-
o.emission = step(ray.endPos.y, _Threshold) * float4(1.0, 0.0, 0.0, 1.0);
68+
o.emission = step(ray.endPos.y, _Threshold) * _Lava;
6769
}
6870
// @endblock
6971

Assets/Demoscene/Projects/2018-07-12-Lava/Lava.unity

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ OcclusionCullingSettings:
1414
RenderSettings:
1515
m_ObjectHideFlags: 0
1616
serializedVersion: 9
17-
m_Fog: 0
18-
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
17+
m_Fog: 1
18+
m_FogColor: {r: 0, g: 0, b: 0, a: 1}
1919
m_FogMode: 3
20-
m_FogDensity: 0.01
20+
m_FogDensity: 0.03
2121
m_LinearFogStart: 0
2222
m_LinearFogEnd: 300
2323
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}

0 commit comments

Comments
 (0)