Page 1 of 1

Bad math in the Lava Shader?

Posted: 12 Jun 2016, 08:25
by Forboding Angel
Why is there a giant seam in the middle yet it's seamless everywhere else?

Image

Shader is taken from violence 4.2. I've modified it slightly just to make it draw underneath water instead of on top of it.

Lava shader/gadget: http://pastebin.com/GrDNLyFn

I've tried it with texture sizes 1024 and 512, neither have any effect.

Re: Bad math in the Lava Shader?

Posted: 12 Jun 2016, 08:45
by Forboding Angel
Fixed it. Line 263 should be:

Code: Select all

DrawGroundHuggingSquare(1,1,1,1,  -4*Game.mapX*256, -4*Game.mapY*256,  5*Game.mapX*256, 5*Game.mapY*256 ,SYNCED.lavaLevel) --***map.width bla
Gah, that just shifts the seam actually.