Compton: Trouble getting shadow to be perfectly centered behind window

Created on 6 May 2017  路  2Comments  路  Source: chjj/compton

I would like the shadow to extend the same amount in all directions, as if the light is in the center of the window. Changing the x and y offset to 2, 1, 1/2, 1/4 of the radius don't seem to do the trick. What numbers should I use to do this? Is there an easier way?

Why isn't an offset of (0,0) centered directly behind the window?

Most helpful comment

I ended up finding that to center shadows, the x and y offset should be r * -1.5

All 2 comments

I ended up finding that to center shadows, the x and y offset should be r * -1.5

I ended up finding that to center shadows, the x and y offset should be r * -1.5

So, this means the shadow radius multiplied by -1.5?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FlyingBlanket picture FlyingBlanket  路  4Comments

tpict picture tpict  路  6Comments

Spheerys picture Spheerys  路  9Comments

AndreasBackx picture AndreasBackx  路  6Comments

sainathadapa picture sainathadapa  路  3Comments