Merge pull request #27505 from clayjohn/depth_bug

Keep DEPTH from causing compile error in GLES2
This commit is contained in:
Rémi Verschelde 2019-04-01 14:53:18 +02:00 committed by GitHub
commit ba1a168659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1466,6 +1466,9 @@ void main() {
float anisotropy = 0.0;
vec2 anisotropy_flow = vec2(1.0, 0.0);
float sss_strength = 0.0; //unused
// gl_FragDepth is not available in GLES2, so writing to DEPTH is not converted to gl_FragDepth by Godot compiler resulting in a
// compile error because DEPTH is not a variable.
float m_DEPTH = 0.0;
float alpha = 1.0;
float side = 1.0;