blob: bdc87df991eed483b100500f66f5a75567edf70e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
shader_type spatial;
uniform sampler2D heightmap;
uniform float height_ration = 1.0;
void fragment() {
// Place fragment code here.
}
void vertex() {
VERTEX.y = texture(heightmap, UV).r * height_ration;
}
|