Apex GP

Devlog

A per-pixel wet film, and 3 ms of grass that was not real

The rain road gets a per-pixel film and a waterline, the wet mirror stops dimming the whole day, and a 3 ms grass cost turns out to be the GPU in another power state.

The road in heavy rain still read as a flat blue-grey plate, so I measured it: at a 1:1 crop the band sat at a blue-to-red ratio of 1.19-1.21 against 0.88 on the clear frame. The soak replaced 85% of the albedo with a single tone across the whole road, and the day build had its wet grain term set to zero.

The film is now one value per pixel from fields the shader already had: a proud aggregate crown sheds it, the compacted line sheds it, worn binder holds more, the hollows most. The grain came back with it, and the damp share reflects the horizon instead of the zenith's blue.

The mirror was dimming the day

The wet-road mirror shared the main view's sky, and a sky's radiance is baked with the energy of the first environment to render after a change. So every wet day with the mirror on had the main view's sky baked at 20%. Given its own sky, a shaded stand at the street circuit in heavy rain went from 0.0076 to 0.0224, and the road band from 0.0110 to 0.0201. Heavy-rain exposure went back to 1.35 from 1.9.

Standing water has a waterline now: the lower of the flooded field and the stretch's own hollows. The setting it replaced flooded 71% of the road; the fitted one stands water on 25%.

The dry road

The asphalt scan is flat (mean 0.831, standard deviation 0.010), so it carries one roughness for the whole road. One field now drives tone, roughness and grain together - repairs, stains, rubber under braking - and everything dark is also matt, which is why the marks finally read at a chase camera.

Three milliseconds that were not there

Four scanned grass packs became one merged clump on the verge, three levels from 2794 triangles to 16, 2.16 clusters per square metre at the kerb. I had thinned the mobile scatter to 0.55 on a measured 3.1 ms cost. Both arms in one process, the whole set costs 0.01-0.11 ms on desktop and 0.05-0.09 ms on mobile, and per-fragment and per-vertex sheen both 0.84 ms. The 3 ms was the GPU in another power state. The thinning is gone.

Baked tree shade covers 46.5% of the track surface where buildings line the circuit, against 0.19% at the flattest park track: the shade comes from things that stand beside the road.

← All devlog posts ยท RSS