mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-22 02:05:01 +01:00
feat(terrain): holes cut in the heightmap terrain and shader grass painted over it
This commit is contained in:
9
shaders/mat_terrain_holes.frag
Normal file
9
shaders/mat_terrain_holes.frag
Normal file
@@ -0,0 +1,9 @@
|
||||
// heightmap terrain with holes cut in it, for the portals of tunnels and the like (opengl46_terrain_materials): the cells cut
|
||||
// out entirely are left out of the mesh, the rest of the openings is cut here. the mask of the holes covers the chunk, 255
|
||||
// where the ground is cut; the fragments where the value led between its samples is over the half are discarded
|
||||
#define TERRAIN_HOLES 1
|
||||
|
||||
#texture (holes, 7, R)
|
||||
uniform sampler2D holes;
|
||||
|
||||
#include <mat_terrain.frag>
|
||||
Reference in New Issue
Block a user