Skip to content

Commit

Permalink
(#73) titanfall2.ShadowEnvironment.sun_angle
Browse files Browse the repository at this point in the history
  • Loading branch information
snake-biscuits committed Jul 31, 2023
1 parent 5627135 commit ab4b641
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bsp_tool/branches/respawn/titanfall2.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,11 @@ class ShadowEnvironment(base.Struct):
first_shadow_mesh: int # first ShadowMesh in this ShadowEnvironment
unknown_2: List[int] # likely indices into other lumps (vistree? nodes?) [num_]
num_shadow_meshes: int # number of ShadowMeshes in this ShadowEnvironment after first_shadow_mesh
angle_vector: List[float] # a unit vector indicating the angle of the sun / shadows
__slots__ = ["unknown_1", "first_shadow_mesh", "unknown_2", "num_shadow_meshes", "angle_vector"]
sun_angle: vector.vec3 # a unit vector indicating the angle of the sun / shadows
__slots__ = ["unknown_1", "first_shadow_mesh", "unknown_2", "num_shadow_meshes", "sun_angle"]
_format = "6i3f"
_arrays = {"unknown_1": 2, "unknown_2": 2, "angle_vector": 3}
_arrays = {"unknown_1": 2, "unknown_2": 2, "sun_angle": [*"xyz"]}
_classes = {"sun_angle": vector.vec3}


# classes for special lumps, in alphabetical order:
Expand Down

0 comments on commit ab4b641

Please sign in to comment.