mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 17:35:45 +02:00
Update drawCellBounds.slv
This commit is contained in:
parent
5ee803bf1d
commit
f728a8ba5a
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ void main(void) {
|
|||
vec4 pos = UNIT_BOX[UNIT_BOX_LINE_INDICES[gl_VertexID]];
|
||||
|
||||
int cellIsEmpty = sign(inCellLocation.w);
|
||||
ivec4 cellLocation = ivec4(inCellLocation.xyz, cellIsEmpty * inCellLocation.w);
|
||||
ivec4 cellLocation = ivec4(inCellLocation.xyz, abs(inCellLocation.w));
|
||||
vec4 cellBound = evalBound(cellLocation);
|
||||
|
||||
pos.xyz = cellBound.xyz + vec3(cellBound.w) * pos.xyz;
|
||||
|
|
Loading…
Reference in a new issue