Browse Source

Merge pull request #5723 from CraigFeldspar/master

fixed depth on diffuse textures with alpha in GeometryRenderer
David Catuhe 6 years ago
parent
commit
3075756ff5
2 changed files with 3 additions and 2 deletions
  1. 2 2
      src/Shaders/geometry.vertex.fx
  2. 1 0
      what's new.md

+ 2 - 2
src/Shaders/geometry.vertex.fx

@@ -11,10 +11,10 @@ attribute vec3 normal;
 varying vec2 vUV;
 uniform mat4 diffuseMatrix;
 #ifdef UV1
-varying vec2 uv;
+attribute vec2 uv;
 #endif
 #ifdef UV2
-varying vec2 uv2;
+attribute vec2 uv2;
 #endif
 #endif
 

+ 1 - 0
what's new.md

@@ -204,6 +204,7 @@
 - Spring Joint could not be removed ([TrevorDev](https://github.com/TrevorDev))
 - Sometimes duplicate controller models are loaded in VR ([TrevorDev](https://github.com/TrevorDev))
 - Particle emit rate and start size over time do not reset on every particle system start ([TrevorDev](https://github.com/TrevorDev))
+- SSAO2 now correctly takes diffuse texture alpha value into account. ([CraigFeldspar](https://github.com/CraigFeldspar))
 
 ### Core Engine