Skip to content

Commit aa51d94

Browse files
Raymarching terrain via texture sampler.
1 parent 627d6ca commit aa51d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terrain_with_heigthmap.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld'
22
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)'
3-
3+
// Heightmap should be in high resolution (1024x1024 or better) and be blurred to avoid artifacts. Set Main Camera to following position (0,50,0).
44
Shader "Terrain with heightmap"
55
{
66
Properties

0 commit comments

Comments
 (0)