(2019-08-23, 19:25)Roland Melkert Wrote: Starting to look very nice.Thanks!
Did you make those bevels using a shader or did you manipulate the meshes before rendering?
With these tenderers I am using out-of-the-box shaders as I am not too worried about performance (yet)
The smooth shading around studs, curved slopes and such is created by some heuristics I have come up with for splitting normals. It is not yet perfect, as can be seen on the macaroni brick in the lower front corner.
The smoothened corners is done by generating textures for normal maps on the fly and again using some less-than-perfect heuristics for UV calculation.
I will will post a write up with illustrations in the “adventures of creating a web renderer” topic once I have some more progress on the environment mapping, ground texture and lights.
But I have to say. This is quite fun. And much more technically than I feared.