Rendering just part of the screen

hi everyone!
im really enjoying the fog option here on playcanvas, but was wondering whether it be possible to have it just affect the lower part of the screen? Im kinda wanting to create a mystic pond vibe

in advance, thanks again for your support!

Hi @linelineline,

What you are looking for is a height based fog, where the effect is stronger at lower elevations.

For that you will have to write a shader to override the default one provided by the engine.

since im def not a highskilled programmer, could you give me any leads on where to start or look :slight_smile: ?

1 Like

Iā€™d say start with two things:

  • Study in the forums posts on how to start overriding shaders chunks, to get some experience writing Playcanvas shaders
  • Search online for a height based fog shader, check how the algorithm works to be able to update the existing fog shader Playcanvas provides.

You can try posting a feature request on the engine repo, since this is a feature that would be nice to have in Playcanvas, in general.