mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01: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;
|
||||
|
@ -62,4 +62,4 @@ void main(void) {
|
|||
<$transformModelToClipPos(cam, obj, pos, gl_Position)$>
|
||||
|
||||
varColor = vec4(colorWheel(fract(float(inCellLocation.w) / 5.0)), 0.8 + 0.2 * float(cellIsEmpty));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue