gzdoom-gles/src/r_data/models
Kevin Caccamo a628cff085 Calculate normals for OBJ models with smooth groups
Add smoothGroup member to OBJFace struct, and assign the current smooth group number to it
Move face normal calculation code to CalculateNormalFlat
Add AddVertFaces method, which initializes and populates the vertFaces array of arrays, which holds references to triangle references per vertex
Only initialize and populate vertFaces if the model has missing normals and smooth groups
Assign smooth groups to triangle data
Add CalculateNormalSmooth method, which calculates the normals for each face the vertex is attached to, depending on whether or not the faces are part of the given smooth group, and averages them out
Add OBJTriRef struct, which holds references to triangles on OBJ surfaces

Make {agg,cur}SurfFaceCount unsigned ints
Change nvec to a value instead of a pointer
2018-10-05 22:24:26 +02:00
..
models.cpp Update usage of LastIndexOf 2018-09-01 11:15:18 +02:00
models.h - fix missing include 2018-06-06 08:49:18 +02:00
models_md2.cpp - avoid reusing the same mVBuf pointer for the different renderers as that causes too many problems when switching between them 2018-05-24 10:25:05 +02:00
models_md3.cpp - avoid reusing the same mVBuf pointer for the different renderers as that causes too many problems when switching between them 2018-05-24 10:25:05 +02:00
models_obj.cpp Calculate normals for OBJ models with smooth groups 2018-10-05 22:24:26 +02:00
models_obj.h Calculate normals for OBJ models with smooth groups 2018-10-05 22:24:26 +02:00
models_ue1.cpp Computed facet normals for UE1 models were not normalized when they were supposed to. 2018-10-05 01:23:38 +02:00
models_ue1.h Fix a major oversight that caused UE1 models to use the normals of the first frame for all frames. 2018-09-26 10:34:45 +02:00
models_voxel.cpp - avoid reusing the same mVBuf pointer for the different renderers as that causes too many problems when switching between them 2018-05-24 10:25:05 +02:00
tab_anorms.h - Move models into r_data 2017-11-25 13:19:00 +01:00