尝试还原了地平线的体积云,还有很多地方需要改进
细节部分请去读原书,这里主要对书中一带而过的部分做一下补充
关于Density-Height Functions
这里我的做法是用Sin苟
fixed4 frag (v2f i) : SV_Target
{
fixed4 col = tex2D(_MainTex, i.uv);
if(_B <= 0.6){
i.uv.y = reMap(i.uv.y,0.0,1.0,0.0,1+(_B*2.0));
}
else{
i.uv.y = reMap(i.uv.y