mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-22 04:43:08 +02:00
#23 fix underwater caustics
This commit is contained in:
@@ -613,7 +613,7 @@ struct WaterCache {
|
||||
|
||||
// calc 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);
|
||||
|
||||
float sx = item.size.x * DETAIL / (item.data[0]->width / 2);
|
||||
|
@@ -77,6 +77,8 @@
|
||||
#define glProgramBinary(...)
|
||||
|
||||
extern EGLDisplay display;
|
||||
|
||||
#define DYNGEOM_NO_VBO
|
||||
#elif __linux__
|
||||
#define LINUX 1
|
||||
#include <GL/gl.h>
|
||||
|
Reference in New Issue
Block a user