Remove duplicated io check
Code style
Minimize boolean condition
Code style
Use clamp
Code style
Use max
Code style
Use clamp
Code style
Code style
Replace component wise assign
Remove duplicated offset
Code style