ozzr / godot_terrain

Custom Godot Engine Build with Terrain Module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Visual Issues when rendering gaps in the Terrain under GLES2 in Android devices

ozzr opened this issue · comments

commented

If you add masks to the terrain to create a Cave or a Gap, under GLES2 on Android, it gives the below visual issue
issue-ANDROID-GLES2-MASKS

This only happens with "certain camera angles only" (look below) here the camera is rotated just a few degrees and the effects disappear
issue-ANDROID-GLES2-MASKS2

commented

The error is caused by setting VERTEX /= 0.0; in the vertex shader. Using discard in the fragment shader fixes the issue.
Adding a warning inside the generated shader to warn the user about this problem.