diff options
author | Bastiaan Olij <mux213@gmail.com> | 2018-12-08 13:43:46 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2018-12-08 13:43:46 +1100 |
commit | fa63a0fe835868148c9ac6ab9a3f260928155c70 (patch) | |
tree | c71b546e66f8531cd2bea79a37a3874cfa6c41d1 /scene/3d/sprite_3d.cpp | |
parent | 9b78147bce3de156eda3bd64a60133c4f2acc823 (diff) |
Reverse bitangent on everythings to ensure default normal map behavriour is consistent
Diffstat (limited to 'scene/3d/sprite_3d.cpp')
-rw-r--r-- | scene/3d/sprite_3d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/sprite_3d.cpp b/scene/3d/sprite_3d.cpp index 5bde224ce3..7b4c7de029 100644 --- a/scene/3d/sprite_3d.cpp +++ b/scene/3d/sprite_3d.cpp @@ -463,9 +463,9 @@ void Sprite3D::_draw() { Plane tangent; if (axis == Vector3::AXIS_X) { - tangent = Plane(0, 0, -1, -1); + tangent = Plane(0, 0, -1, 1); } else { - tangent = Plane(1, 0, 0, -1); + tangent = Plane(1, 0, 0, 1); } RID mat = SpatialMaterial::get_material_rid_for_2d(get_draw_flag(FLAG_SHADED), get_draw_flag(FLAG_TRANSPARENT), get_draw_flag(FLAG_DOUBLE_SIDED), get_alpha_cut_mode() == ALPHA_CUT_DISCARD, get_alpha_cut_mode() == ALPHA_CUT_OPAQUE_PREPASS); |