Skip to content

fix coordinate-transform-repeat in Scene.py and forward_draw_points.vert - #14

Open
dwlhhh wants to merge 1 commit into
Time-Coder:mainfrom
dwlhhh:fix/coordinate-transform-repeat
Open

fix coordinate-transform-repeat in Scene.py and forward_draw_points.vert#14
dwlhhh wants to merge 1 commit into
Time-Coder:mainfrom
dwlhhh:fix/coordinate-transform-repeat

Conversation

@dwlhhh

@dwlhhh dwlhhh commented Aug 20, 2026

Copy link
Copy Markdown

in forward_draw_points.vert:
vs_out.affine_transform = transform;
vs_out.color = color;
vs_out.tex_coord = tex_coord;
vs_out.world_pos = transform_apply(transform, position);
vs_out.world_normal = normalize(camera.abs_position - vs_out.world_pos);
in Scene.py:
new_mat = (
current_mat
* translate_to_mat4(scene_node.position)
* quat_to_mat4(scene_node.orientation)
* scale_to_mat4(scene_node.scale)
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant