DER commit
This commit is contained in:
parent
7e386585a1
commit
43581397ed
2 changed files with 1 additions and 1 deletions
BIN
exercise2/A2.pdf
Normal file
BIN
exercise2/A2.pdf
Normal file
Binary file not shown.
|
@ -29,7 +29,7 @@ const vec2 offsets[6] = vec2[6](
|
|||
void main()
|
||||
{
|
||||
vec4 terrain_position = vec4(position.x, getTerrainHeight(vec2(position.x, position.z)), position.z, position.w);
|
||||
n = calculate_normal(position);
|
||||
n = calculate_normal(terrain_position);
|
||||
//n = vec3(0.0, 1.0, 0.0);
|
||||
|
||||
uv = vec2(terrain_position.x / 255.0, terrain_position.z / 255.0);
|
||||
|
|
Loading…
Reference in a new issue