본문으로 건너뛰기
CHOI HONGSU
1 min read

Environment shader

 

 

Implementation

  1. 01

    shader node

    Back-face color is handled with Is Front Face

    Dither is used for a low-spec friendly fade

    Length keeps the value increasing in both directions ( prevents the whole thing from being erased to black )

Smoothstep으로 블랙마스킹

Smoothstep is used to mask in black so contact with the ground is anchored smoothly

A Sine wave controls only the R channel as a Wave

Wave 구현

Wave implemented the same way

Absolute World Position is used so the wave direction changes when placed at different positions