Fix floating point precision loss in renderer [part 2]

Fix floatTime using float precision instead of double using GCC.
Fix R_BindAnimatedImage to be in sync with function table.
Fix vertexDeform bulge, vertexDeform normals, noise wave function
at high level time.

Revert unnecessary float -> double conversions.
This commit is contained in:
Zack Middleton committed 2017-08-03 00:14:22 -05:00
1 parent 30fdd88c9f
commit 59b1262b82
12 files changed
+62 -69

No files matched your search

+5 -5
View File
@@ -189,10 +189,10 @@ typedef enum {
typedef struct {
genFunc_t func;
double base;
double amplitude;
double phase;
double frequency;
float base;
float amplitude;
float phase;
float frequency;
} waveForm_t;
#define TR_MAX_TEXMODS 4
@@ -252,7 +252,7 @@ typedef struct {
typedef struct {
image_t *image[MAX_IMAGE_ANIMATIONS];
int numImageAnimations;
double imageAnimationSpeed;
float imageAnimationSpeed;
texCoordGen_t tcGen;
vec3_t tcGenVectors[2];