bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.46k stars 3.6k forks source link

add docs to clip_from_view #16373

Closed atlv24 closed 1 week ago

atlv24 commented 2 weeks ago

more docs

JMS55 commented 2 weeks ago

Users can also use a custom projection

atlv24 commented 2 weeks ago

im aware, i think if a user is advanced enough to do custom projections then they know what they're doing. i cant possibly document what they are doing anyways

JMS55 commented 2 weeks ago

Mhm. Just thinking we should maybe leave a comment reminding people about it. Up to you, I don't feel strongly either way.

JMS55 commented 2 weeks ago

The other nice thing to add would be how you check for ortho vs perspective in a shader.

atlv24 commented 2 weeks ago

addressed both

alice-i-cecile commented 1 week ago

Docs always good. Is there anything we can do to avoid having 3 sets of the same docs from getting out of sync? Newtyping? Including a text document or linking to it?

You can include_str various bits of text in docs. In this case though module docs feel more correct.