Stylized desert scenes

Cartoon shader for desert scenes



Feature overview




Implementation of POM sampling trail:


After obtaining the tracks through AnyTrail, POM can be used to sample the tracks to simulate the footprint depth, which has better performance than tessellation
1. If directly sample the track, the footprint will not align with the character's position, so I need to draw an extra distance forward
2. To give the footprint depth, move the character's foot some distance underground and manually write the SV_Depth of the footprint part deeper in the fragment shader




Drawing process

Reference list

Cartoon water: Toon Water