mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
minor fixes on mac
This commit is contained in:
parent
efc4406b47
commit
e9bf19840c
2 changed files with 10 additions and 4 deletions
|
@ -47,12 +47,12 @@ float projection_getFar(mat4 projection) {
|
|||
// end of hybrid include
|
||||
|
||||
|
||||
uniform clusterGridBuffer {
|
||||
int _clusterGridTable[10000];
|
||||
layout (std140) uniform clusterGridBuffer {
|
||||
int _clusterGridTable[4096];
|
||||
};
|
||||
|
||||
uniform clusterContentBuffer {
|
||||
int _clusterGridContent[10000];
|
||||
layout (std140) uniform clusterContentBuffer {
|
||||
int _clusterGridContent[4096];
|
||||
};
|
||||
|
||||
<@endif@>
|
||||
|
|
|
@ -53,6 +53,12 @@ void main(void) {
|
|||
);
|
||||
vec4 pos = UNIT_BOX[UNIT_BOX_LINE_INDICES[gl_VertexID]];
|
||||
|
||||
int clusterDesc = _clusterGridTable[gl_InstanceID];
|
||||
int numLights = 0xFFFF & (clusterDesc >> 16);
|
||||
|
||||
if (numLights <= 0) {
|
||||
return;
|
||||
}
|
||||
ivec3 dims = frustumGrid.dims.xyz;
|
||||
|
||||
ivec3 summedDims = ivec3(dims.x * dims.y, dims.x, 1);
|
||||
|
|
Loading…
Reference in a new issue