noggit3 icon indicating copy to clipboard operation
noggit3 copied to clipboard

map chunk: normal recalculation for terrain is a bit broken

Open bloerwald opened this issue 5 years ago • 1 comments
trafficstars

@skarnproject reported on 2017-02-03

Since some time normal calculation algorithm for used for terrain brushes is a little bit different from Blizzard's one. To reproduce: edit terrain with zero speed and see changing shading on full chunk. Did not happen before.

bloerwald avatar Jun 29 '20 15:06 bloerwald

Are you sure that calculation actually changed? I can't remember anyone touching that code in at least a year. Is it maybe that we now set

  gl.materialfv(GL_FRONT_AND_BACK, GL_SPECULAR, math::vector_4d (0.1f, 0.1f, 0.1f, 0.1f));

which makes this way more visible? -- okay, it isn't, without one still sees the shadows jumping a bit, God damn it.

bloerwald avatar Jun 29 '20 15:06 bloerwald