Beamdog / nwn-issues

Neverwinter Nights: Enhanced Edition Technical Bug Tracker
http://nwn.beamdog.com
31 stars 1 forks source link

[37-2] vPos uniform is providing world vert values, not object vert values #611

Closed Txpple closed 6 months ago

Txpple commented 8 months ago

It seems that in 37-2 vPos is pushing world vertex values to the vertex shader, and per documentation and all prior versions, it should be providing object vertex data. Something broke here.

See attached shaders and mdl file. The mdl file is a square that has the top two verts at a height of 1 and the bottoms at a height of zero, giving a range of 0 at bottom of the object to 1 at top for the verts. The shaders for the repro take vPos.Z in the vs and push the z value to the fs to color the square as a gradiant from black to white (0,0,0 to 1,1,1). If it goes over 1, it will color it red.

To Reproduce

Specifics

vPosbug.zip

36-12 vPosObjectHeight 37-2 vPosWorldHeight
Soren217 commented 8 months ago

As discussed bilaterally, this is a delibarate change, but we will be exposing new uniforms that will allow you to overcome any issues the change may have imposed.

Soren217 commented 6 months ago

As discussed bilaterally, the new bounding box uniforms should allow overcoming the issue caused by this change.