Prechádzať zdrojové kódy

fixed depth on diffuse textures with alpha in GeometryRenderer

Benjamin Guignabert 6 rokov pred
rodič
commit
e44a898e90
2 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  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