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:
@@ -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);
|
||||||
|
@@ -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>
|
||||||
|
Reference in New Issue
Block a user