mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-09-01 10:42:34 +02:00
Merge branch 'skmp/fix-im2d-depth' into 'main'
im2dvtx: use CameraZ, no-op RecipCameraZ See merge request skmp/dca3-game!58
This commit is contained in:
2
vendor/librw/src/dc/rwdc.h
vendored
2
vendor/librw/src/dc/rwdc.h
vendored
@@ -46,7 +46,7 @@ struct Im2DVertex
|
||||
void setScreenZ(float32 z) { this->z = z; }
|
||||
// This is a bit unefficient but we have to counteract GL's divide, so multiply
|
||||
void setCameraZ(float32 z) { this->w = z; }
|
||||
void setRecipCameraZ(float32 recipz) { this->w = 1.0f/recipz; }
|
||||
void setRecipCameraZ(float32 recipz) { /* don't change w here, as recipz is not always the correct one, see Coronas.cpp */ }
|
||||
void setColor(uint8 r, uint8 g, uint8 b, uint8 a) {
|
||||
this->r = r; this->g = g; this->b = b; this->a = a; }
|
||||
void setU(float32 u, float recipz) { this->u = u; }
|
||||
|
Reference in New Issue
Block a user