Update drawCellBounds.slv

This commit is contained in:
Sam Gondelman 2018-11-27 10:57:57 -08:00 committed by GitHub
parent 5ee803bf1d
commit f728a8ba5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;