1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-21 12:21:33 +02:00

#23 fix underwater caustics

This commit is contained in:
XProger
2018-03-04 14:04:56 +03:00
parent 0b85d8b5a1
commit 7390623cda
2 changed files with 3 additions and 1 deletions

View File

@@ -613,7 +613,7 @@ struct WaterCache {
// calc caustics // calc caustics
game->setShader(Core::passWater, Shader::WATER_CAUSTICS); game->setShader(Core::passWater, Shader::WATER_CAUSTICS);
vec3 rPosScale[2] = { vec3(0.0f), vec3(1.0f / PLANE_DETAIL) }; vec3 rPosScale[2] = { vec3(0.0f), vec3(32767.0f / PLANE_DETAIL) };
Core::active.shader->setParam(uPosScale, rPosScale[0], 2); Core::active.shader->setParam(uPosScale, rPosScale[0], 2);
float sx = item.size.x * DETAIL / (item.data[0]->width / 2); float sx = item.size.x * DETAIL / (item.data[0]->width / 2);

View File

@@ -77,6 +77,8 @@
#define glProgramBinary(...) #define glProgramBinary(...)
extern EGLDisplay display; extern EGLDisplay display;
#define DYNGEOM_NO_VBO
#elif __linux__ #elif __linux__
#define LINUX 1 #define LINUX 1
#include <GL/gl.h> #include <GL/gl.h>