Bad math in the Lava Shader?

Bad math in the Lava Shader?

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Bad math in the Lava Shader?

Post 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.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Bad math in the Lava Shader?

Post 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.
Post Reply

Return to “Map Creation”