small changes

This commit is contained in:
aap 2023-02-21 01:24:42 +01:00
parent 8271c23a9e
commit 05db81b92f
2 changed files with 4 additions and 1 deletions

View File

@ -587,6 +587,7 @@ Matrix::makeRotation(Matrix *dst, const V3d *axis, float32 angle)
dst->pos.y = 0.0;
dst->pos.z = 0.0;
dst->flags = TYPEORTHONORMAL;
dst->pad1 = dst->pad2 = dst->pad3 = 0;
}
/* q must be normalized */
@ -616,6 +617,7 @@ Matrix::makeRotation(Matrix *dst, const Quat &q)
dst->pos.y = 0.0;
dst->pos.z = 0.0;
dst->flags = TYPEORTHONORMAL;
dst->pad1 = dst->pad2 = dst->pad3 = 0;
}
float32

View File

@ -15,8 +15,8 @@ extern Device renderdevice;
struct Im2DVertex
{
float32 x, y, z, w;
uint32 r, g, b, a;
float32 u, v, q, PAD;
uint32 r, g, b, a;
void setScreenX(float32 x) { this->x = x; }
void setScreenY(float32 y) { this->y = y; }
@ -121,6 +121,7 @@ struct PipeAttribute
uint32 attrib;
};
extern bool adcHack; // use MASK write to initialize ADC field in vertex cluster
extern PipeAttribute attribXYZ;
extern PipeAttribute attribXYZW;
extern PipeAttribute attribUV;