Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos, grammar, and spelling mistakes #16273

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

BenjaminBrienen
Copy link
Contributor

@BenjaminBrienen BenjaminBrienen commented Nov 7, 2024

Objective

Code and documentation should use words that exist and are spelled correctly.

Also, I noticed a markdownlint warning to do with the table at the bottom having left and right bars (inconsistent style) so I fixed the template file.

Solution

I used the cSpell VS Code extension and literally opened every single .rs file to see if it popped up any cSpell "Problems". Most of them were added as "words" in settings.json. See here:

"cSpell.words": [
    "0xffffu",
    "Aabb",
    "aabbs",
    "Aaltonen's",
    "aarch",
    "Abney",
    "accesskit",
    "acosf",
    "acosh",
    "acoshf",
    "adjwgt",
    "Adreno",
    "ahash",
    "allocvec",
    "animatable",
    "animgraph",
    "antialiasing",
    "anymap",
    "anytuple",
    "aortiz",
    "APPCOMMAND",
    "arctan",
    "AREATEX",
    "argb",
    "argh",
    "arity",
    "arrayvec",
    "artifacting",
    "asinf",
    "asinh",
    "asinhf",
    "astc",
    "atanf",
    "atanh",
    "atanhf",
    "atomicow",
    "autovectorization",
    "AZERTY",
    "backface",
    "Backfaces",
    "Backquote",
    "backshift",
    "barebones",
    "Barré",
    "barycentrics",
    "batchable",
    "batchables",
    "Bdot",
    "Belen",
    "bevyengine",
    "bevymark",
    "Bezier",
    "Bézier",
    "Beziers",
    "Bezold",
    "Bgra",
    "bilinearly",
    "bincode",
    "bindgen",
    "bindgroup",
    "bindgroups",
    "Bindless",
    "bindpose",
    "bindposes",
    "bitand",
    "bitangent",
    "bitcast",
    "bitfield",
    "Bitfields",
    "bitflags",
    "bitflip",
    "Bitmask",
    "bitsets",
    "bitshifted",
    "bitslice",
    "bitstream",
    "bitvec",
    "BLIT",
    "blobby",
    "bokeh",
    "Borderless",
    "BRDF",
    "Brisebois",
    "Brücke",
    "BSDF",
    "bsparse",
    "Bufferable",
    "bufread",
    "buildable",
    "BURLYWOOD",
    "bytemuck",
    "bytewise",
    "callables",
    "callstack",
    "canonicalize",
    "castable",
    "Castano",
    "Castaño",
    "Casteljau",
    "catmull",
    "cbrt",
    "cbrtf",
    "chacha",
    "cheatbook",
    "chipsets",
    "Choi",
    "CIEXYY",
    "CIEXYZ",
    "cinematics",
    "circumcenter",
    "circumcircle",
    "circumradius",
    "clearcoat",
    "Clippy",
    "Cloneable",
    "Clusterable",
    "cmpeq",
    "cmpge",
    "cmpgt",
    "cmple",
    "CMYKA",
    "codegen",
    "combinators",
    "componentless",
    "componentwise",
    "constness",
    "consts",
    "cooldown",
    "copysign",
    "CORNSILK",
    "cosf",
    "coshf",
    "cpus",
    "criss",
    "crossfade",
    "crossfades",
    "crossfading",
    "cubemap",
    "CUBEMAPS",
    "dasharray",
    "ddsfile",
    "deadzone",
    "dealloc",
    "Deband",
    "debanding",
    "Debouncer",
    "defaultable",
    "denoise",
    "denoised",
    "denoiser",
    "Denoising",
    "denormalization",
    "denormalized",
    "dereferenceable",
    "derefs",
    "desaturate",
    "desaturated",
    "desaturates",
    "desaturation",
    "deserializers",
    "Desmos",
    "despawn",
    "despawned",
    "despawning",
    "despawns",
    "Destructures",
    "DIMAS",
    "discoverability",
    "disocclusion",
    "docsrs",
    "docstring",
    "docstrings",
    "doctest",
    "doubletap",
    "downcasted",
    "downcasting",
    "downsample",
    "downsampling",
    "downscaling",
    "dpad",
    "dropck",
    "Duplo",
    "dvec",
    "Dwarnings",
    "Dxgi",
    "dxil",
    "dylib",
    "easings",
    "Echevarria",
    "Edss",
    "Eevee",
    "ehttpd",
    "Eisu",
    "elerp",
    "ENDCALL",
    "endfor",
    "endianness",
    "ERCIM",
    "evaluateable",
    "expf",
    "expm",
    "eyepatch",
    "fabsf",
    "Farbfeld",
    "Favg",
    "fieldless",
    "finalizer",
    "Fira",
    "fixedbitset",
    "fixint",
    "flac",
    "flatmap",
    "flexbox",
    "fontdb",
    "foos",
    "Footguns",
    "fract",
    "framebuffer",
    "Framelimit",
    "framerates",
    "frametime",
    "freecam",
    "freelist",
    "fullscreen",
    "fullsize",
    "fwidth",
    "FXAA",
    "gabe",
    "GAINSBORO",
    "gamedev",
    "gamepad",
    "gamepads",
    "gameplay",
    "gbuffer",
    "GFBD",
    "Gibibytes",
    "gilrs",
    "Gjøl",
    "Gles",
    "GLSL",
    "Gltf",
    "gltfs",
    "gradlew",
    "graphmap",
    "graymap",
    "grayscale",
    "Greenstein",
    "guillotiere",
    "Habib",
    "Halton",
    "Hanja",
    "Hankaku",
    "hashable",
    "hashbrown",
    "Hasher",
    "hashset",
    "HEADSETHOOK",
    "henkan",
    "Henyey",
    "hexasphere",
    "hittest",
    "HLOD",
    "HLODs",
    "HLSL",
    "hotspot",
    "hoverable",
    "HRTF",
    "Hwba",
    "hypot",
    "hypotf",
    "icosphere",
    "idents",
    "ifdef",
    "ifndef",
    "ilog",
    "IMEs",
    "impls",
    "injective",
    "inlabel",
    "inradius",
    "inscattering",
    "insource",
    "interactable",
    "Internable",
    "INTERNER",
    "interp",
    "irect",
    "irreflexivity",
    "isomp4",
    "itertools",
    "Junja",
    "Kaihuai",
    "karis",
    "Kelemen",
    "keybinds",
    "keycodes",
    "keydown",
    "keysym",
    "keysyms",
    "Khronos",
    "Koschmieder",
    "Kummer",
    "kway",
    "Laba",
    "Lagarde",
    "Lambertian",
    "layouting",
    "Lbottom",
    "Lcha",
    "Ldot",
    "legendaries",
    "Lengyel",
    "lerp",
    "libbevy",
    "libc",
    "libm",
    "libstd",
    "lifetimed",
    "lifetimeless",
    "Lightmap",
    "lightmapped",
    "Lightmapper",
    "lightmaps",
    "LIMEGREEN",
    "linebreak",
    "linebreaks",
    "linestrip",
    "livezone",
    "Lleft",
    "Lleftleft",
    "logcat",
    "logf",
    "łørđ",
    "losslessly",
    "LOTTES",
    "lowerbound",
    "Lright",
    "Lspec",
    "Ltop",
    "Ltoptop",
    "Luma",
    "lumas",
    "luts",
    "Mapface",
    "markdownlint",
    "Masia",
    "memmove",
    "mergeable",
    "Meshable",
    "meshlet",
    "meshlets",
    "meshopt",
    "meshoptimizer",
    "metadatas",
    "metalness",
    "metas",
    "metavar",
    "microfacet",
    "microfacets",
    "midtone",
    "midtones",
    "Mikkelsen's",
    "Mikkelsen",
    "mikktspace",
    "milli",
    "millihertz",
    "minimaps",
    "minimp3",
    "minmax",
    "mipchain",
    "mipmap",
    "mipmapped",
    "Mipmapping",
    "mipmaps",
    "MIRI",
    "mixamo",
    "Moiré",
    "Moissanite",
    "monochromized",
    "monomorphization",
    "monomorphizations",
    "monomorphized",
    "Morten",
    "Morvan",
    "Msaa",
    "msrv",
    "msvc",
    "muhenkan",
    "multimonitor",
    "multiplicatively",
    "Multisample",
    "multisampled",
    "multisampling",
    "multiscatter",
    "Multiscattering",
    "multitouch",
    "multiview",
    "mосква",
    "naïvely",
    "namespacing",
    "nand",
    "Nanite",
    "nanos",
    "natvis",
    "Ndot",
    "NdotV",
    "NEGATIVEX",
    "NEGATIVEY",
    "NEGATIVEZ",
    "Nesw",
    "Neubelt",
    "newtype",
    "NEXTTRACK",
    "nlerp",
    "nocheck",
    "nonmax",
    "nonminimal",
    "Nonnegativity",
    "nonoverlapping",
    "nonplaying",
    "nonprimary",
    "nonsend",
    "nonsendmut",
    "nonspatial",
    "Nout",
    "Numpad",
    "NURB",
    "Nurbs",
    "occluder",
    "OCIO",
    "Oklab",
    "Oklaba",
    "Oklch",
    "Oklcha",
    "OLIVEGREEN",
    "oneshot",
    "openexr",
    "orthogonalization",
    "orthonormalization",
    "orthonormalize",
    "oslog",
    "oversaturates",
    "parallaxed",
    "parallaxing",
    "parameterless",
    "parametrizations",
    "parentless",
    "Pathing",
    "PCSS",
    "PEACHPUFF",
    "peekable",
    "perp",
    "Persson",
    "pessimize",
    "petgraph",
    "Pettineo",
    "Pickable",
    "pickables",
    "PINP",
    "pixmap",
    "Playdead",
    "pointee",
    "pointlight",
    "Polyline",
    "POSITIVEX",
    "POSITIVEY",
    "POSITIVEZ",
    "posterization",
    "postorder",
    "postprocess",
    "powf",
    "powi",
    "powsafe",
    "PQRS",
    "precomputations",
    "precompute",
    "Preedit",
    "Preëdit",
    "Prefilter",
    "preimage",
    "premultiply",
    "prepass",
    "prepasses",
    "preprocess",
    "preprocessable",
    "Preservering",
    "PREVIOUSTRACK",
    "println",
    "PRNG",
    "procmacro",
    "procmacro2_semver_exempt",
    "Proto",
    "proxied",
    "proxying",
    "ptrs",
    "punct",
    "PVRTC",
    "qself",
    "quadro",
    "QWERTZ",
    "Radeon",
    "radsort",
    "RAII",
    "Rampon",
    "Raphson",
    "rasterizer",
    "rasterizing",
    "raycast",
    "Raycasting",
    "RAYMARCH",
    "raymarching",
    "raytrace",
    "raytracing",
    "RCAS",
    "rcvec",
    "readback",
    "readbacks",
    "realloc",
    "REBECCA",
    "rebindings",
    "reborrow",
    "reborrowed",
    "reborrowing",
    "reborrows",
    "recip",
    "recompiles",
    "rects",
    "redepend",
    "Reexit",
    "Reflectable",
    "Reflectstd",
    "reimplementation",
    "reindex",
    "Reinhard",
    "relayout",
    "renderable",
    "renormalize",
    "renormalized",
    "renormalizes",
    "renormalizing",
    "Reparam",
    "reparametrization",
    "reparametrizations",
    "reparametrize",
    "reparametrized",
    "reparent",
    "reparented",
    "reparenting",
    "reparsing",
    "repr",
    "Reproject",
    "reprojected",
    "reprojection",
    "requiree",
    "requirees",
    "reserialize",
    "resmut",
    "respawn",
    "retargeting",
    "retransformed",
    "rgba",
    "Rgba8Snorm",
    "Rgba8Unorm",
    "RGBSDA",
    "rgbw",
    "rngs",
    "rodio",
    "Romaji",
    "roundtripped",
    "roundtrips",
    "Rousiers",
    "RRGGBB",
    "RRGGBBAA",
    "Rrrg",
    "rsplit",
    "runtimes",
    "rustc",
    "rustdoc",
    "RUSTDOCFLAGS",
    "rustfix",
    "RUSTFLAGS",
    "rustfmt",
    "Rustonomicon",
    "rustup",
    "ruzstd",
    "Ryfjallet",
    "samplable",
    "samplr",
    "scancode",
    "scanline",
    "sccs",
    "Schlick",
    "Scratchapixel",
    "screenspace",
    "SEARCHTEX",
    "Seedable",
    "serde",
    "SFLOAT",
    "shadowmap",
    "sharedso",
    "shortnames",
    "Siggraph",
    "signum",
    "simctl",
    "SIMD",
    "simplespace",
    "sincosf",
    "sinf",
    "sinhf",
    "skippable",
    "Şķràźÿ",
    "skybox",
    "skyboxes",
    "slerp",
    "smaa",
    "smallvec",
    "smol_hyper",
    "smol_str",
    "SmolStr",
    "SmolTimer",
    "smoothstep",
    "snorm",
    "Sobotka",
    "spacebar",
    "specializer",
    "specularly",
    "SPIR",
    "SPIRV",
    "splitn",
    "srgb",
    "srgba",
    "SSAA",
    "SSAO",
    "ssbo",
    "ssbos",
    "SSGI",
    "SSRT",
    "Stachowiak",
    "stackfuture",
    "stdcxx",
    "stdlib",
    "steppable",
    "struct",
    "structs",
    "subapp",
    "subasset",
    "subaxis",
    "subcrate",
    "subcrates",
    "subdir",
    "subinterval",
    "subqueries",
    "subquery",
    "Subresource",
    "subsamples",
    "subspan",
    "substate",
    "substates",
    "subtest",
    "SUBTEXTURE",
    "subtrait",
    "subtraits",
    "subtyping",
    "Supercompression",
    "superdump",
    "supersampling",
    "supertrait",
    "supertraits",
    "Svendsen",
    "swapchain",
    "synccell",
    "syncunsafecell",
    "sysinfo",
    "Tanasoaia",
    "tanf",
    "tanhf",
    "Tarjan",
    "Tdot",
    "Teodor",
    "tera",
    "TEXCOORD",
    "texel",
    "texels",
    "textureless",
    "thiserror",
    "thresholded",
    "thresholding",
    "Tiago",
    "Tickrate",
    "tileset",
    "timespan",
    "timestep",
    "timesteps",
    "titlebar",
    "toggleable",
    "Tomasz",
    "TONEMAP",
    "tonemapped",
    "tonemapper",
    "tonemappers",
    "Tonemapping",
    "tony_mc_mapface",
    "TonyMcMapface",
    "topsort",
    "touchpads",
    "transactionality",
    "tspan",
    "turbofish",
    "tweakable",
    "Typeless",
    "UASTC",
    "Ufloat",
    "UI's",
    "uinode",
    "uinodes",
    "uirect",
    "uistack",
    "Ulps",
    "ultrawide",
    "unabbreviate",
    "unaliased",
    "unassigning",
    "unbatchable",
    "unbatchables",
    "unbatched",
    "unboundedness",
    "unclipped",
    "unconstructable",
    "unfixable",
    "unflushed",
    "unforce",
    "ungrab",
    "unhandleable",
    "UNHOVERED",
    "uninit",
    "uniterated",
    "unjittered",
    "unmap",
    "unnormalized",
    "unoccluded",
    "Unorm",
    "unpadded",
    "unproxied",
    "unsampled",
    "Unskewed",
    "unskinned",
    "unspilled",
    "unstretched",
    "unsuffixed",
    "unsynchronized",
    "untaken",
    "untargeted",
    "UNTEXTURED",
    "unthrottled",
    "unwrapper",
    "unyielded",
    "upcasting",
    "upperbound",
    "Upsample",
    "upsampled",
    "upsampling",
    "upscaled",
    "upscaling",
    "urect",
    "ureq",
    "uvec",
    "UYVY",
    "Valorant's",
    "Vals",
    "variadics",
    "Varyings",
    "VBAO",
    "vblank",
    "Vdot",
    "VecDeque",
    "veclike",
    "vecs",
    "verlet",
    "viewports",
    "VIOLETRED",
    "virt",
    "Vlachos",
    "vorbis",
    "voxel",
    "voxelized",
    "voxels",
    "Vsync",
    "VTABLE",
    "Vulkan",
    "VXGI",
    "WAKEUP",
    "WASD",
    "webgl",
    "webgpu",
    "webp",
    "WGPU_SETTINGS_PRIO",
    "wgpu",
    "wgsl",
    "winit",
    "wireframe",
    "wireframes",
    "wlong",
    "wolframalpha",
    "workgroups",
    "worldspace",
    "writeback",
    "wshort",
    "WXYZ",
    "xcodeproj",
    "xcrun",
    "XeGTAO",
    "xffffffff",
    "xmag",
    "xnor",
    "xshell",
    "xvfb",
    "Xwayland",
    "xxyy",
    "xyxy",
    "xyxz",
    "Xyza",
    "xyzw",
    "xyzy",
    "ycbcr",
    "ycocg",
    "yeong",
    "yfov",
    "YIQSDA",
    "YUVSDA",
    "yxwz",
    "Zenkaku",
    "Zeroable",
    "zfar",
    "znear",
    "Zstandard",
    "zstd",
    "παₜα"
  ]

Testing

The CI should be good.

Migration Guide

Color::rbga_linear -> Color::rgba_linear
CubicSegment.coeff -> CubicSegment.coefficients
RationalSegment.coeff -> RationalSegment.coefficients
RationalSegment.weight_coeff -> RationalSegment.weight_coefficients
Curve::reparameterize -> Curve::reparametrize
Curve::reparametrize_linear -> Curve::reparameterize_linear
Curve::reparametrize_by_curve -> Curve::reparameterize_by_curve
FallbackImageMsaa::image_for_samplecount -> FallbackImageMsaa::image_for_sample_count
prepare_uimaterial_nodes -> prepare_ui_material_nodes
GridTrack::vmin -> GridTrack::v_min
GridTrack::vmax -> GridTrack::v_max
ExitCondition::DontExit -> ExitCondition::DoNotExit
WinitWindows::get_fitting_videomode -> WinitWindows::get_fitting_video_mode
get_best_videomode -> get_best_video_mode
RepeatedGridTrack::vmin -> RepeatedGridTrack::v_min
RepeatedGridTrack::vmax -> RepeatedGridTrack::v_max
maths -> math

@BenjaminBrienen BenjaminBrienen self-assigned this Nov 7, 2024
@BenjaminBrienen BenjaminBrienen added C-Docs An addition or correction to our documentation C-Code-Quality A section of code that is hard to understand or change A-Cross-Cutting Impacts the entire engine D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Nov 7, 2024
Copy link
Contributor

github-actions bot commented Nov 7, 2024

The generated examples/README.md is out of sync with the example metadata in Cargo.toml or the example readme template. Please run cargo run -p build-templated-pages -- update examples to update it, and commit the file change.

crates/bevy_mikktspace/src/generated.rs Outdated Show resolved Hide resolved
crates/bevy_pbr/src/cluster/assign.rs Outdated Show resolved Hide resolved
crates/bevy_pbr/src/material.rs Outdated Show resolved Hide resolved
crates/bevy_pbr/src/meshlet/from_mesh.rs Outdated Show resolved Hide resolved
crates/bevy_render/src/gpu_readback.rs Outdated Show resolved Hide resolved
docs-template/EXAMPLE_README.md.tpl Outdated Show resolved Hide resolved
examples/games/contributors.rs Show resolved Hide resolved
examples/math/custom_primitives.rs Outdated Show resolved Hide resolved
examples/testbed/3d.rs Outdated Show resolved Hide resolved
examples/testbed/3d.rs Outdated Show resolved Hide resolved
@rparrett rparrett added the M-Needs-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide label Nov 7, 2024
@rparrett
Copy link
Contributor

rparrett commented Nov 7, 2024

Mostly like these changes, but they should probably be held back until after the 0.15 release cycle is complete to avoid cherry-picking conflicts.

I am curious as to why typos didn't catch some of the more egregious stuff in CI.

Quite a few breaking changes. One is a super obvious typo that should definitely get fixed up. No opinion on others.

@BenjaminBrienen
Copy link
Contributor Author

@rparrett I think I addressed all the feedback. Most of it was adding to the migration guide and applying your suggestions. Let me know if you have further comments! :)

@BenjaminBrienen BenjaminBrienen added S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged S-Needs-Review Needs reviewer attention (from anyone!) to move forward and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Nov 8, 2024
@BenjaminBrienen
Copy link
Contributor Author

I have submitted the basic English typos to the typos CI repository.

I can add the long list of exceptions to the typos.toml if wanted. I can comment an explanation for each one and I can make sure each one is in the proper category.

Copy link
Contributor

@atlv24 atlv24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

theres a lot of changes i dont like here. beyond some changes being distasteful imo, some changes are just wrong and mangle sentences. the typo fixes are good and very welcome, id hate to see them held back because of being bundled with more controversial changes

the things i dont like:

  • lots of commas very liberally added that kinda hurt readability in a lot of cases
  • decorating/replacing "so" with "that" and "therefore" and "thus". i dont see the point and it just reads like fluffery
  • expansion of understood terms like topsorted to topologically_sorted and coeffs to coefficients, subdivs into subdivisions etc
  • changing parametrize into parameterize. both are words but the latter is not the one used in this context in mathematics
  • changing NdotV to N_dot_V and similar. this is an existing convention in rendering and this change has been suggested before, we stick to convention here
  • im not sure changing pointee to pointed is correct. this isnt my domain but some sentences read a little weird there after the changes
  • metallicity -> metalness why?
  • retval -> okay why?
  • birbs -> birds we're not a corporation we dont have to wear suits and ties
  • zfar znear tmin tmax etc underscorification this hurts readability

i just gave this a skim, i would be very opposed to this merging as is.

id recommend making the objective uncontroversial fixes into a separate PR. id include only the following:

  • a -> an changes
  • words that are spelled incorrectly (e.g. extra letters, wrong letters, wrong order, wrongly spaced, stuff like strukt -> r#struct)
  • conformance to american english (maths -> math, normalise -> normalize)
  • dont -> don't and similar apostrophe insertions
  • capitalization corrections, including pascal case such as TestNewcomputedState => TestNewComputedState
  • consistency fixes (having both coeff and coef is weird, lets stick to just one, id pick coeff)
  • adding backtick code spans
  • unconnected words/sentence fragments like the "You" in crates/bevy_picking/src/lib.rs line 290

i would exclude changes that expand abbreviations, rephrase comments, add commas, or change wordings, and save them for another PR.

maths -> math probably deserves its own PR even

apologies in advance if this review is overly harsh or irritating, i do appreciate the effort to fix this, i just find it a bit overzealous and opinionated

crates/bevy_core_pipeline/src/oit/mod.rs Outdated Show resolved Hide resolved
@@ -644,7 +644,7 @@ mod tests {
let viewport_size = vec2(500., 500.);

for value in (-10..10).map(|value| value as f32) {
// for a square viewport there should be no difference between `Vw` and `Vh` and between `Vmin` and `Vmax`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change

Copy link
Contributor Author

@BenjaminBrienen BenjaminBrienen Nov 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Vmax" isn't in the dictionary but "V" and "Max" are. The alternative solution is to add "Vmax" to the dictionary.

docs-template/EXAMPLE_README.md.tpl Outdated Show resolved Hide resolved
examples/3d/shadow_biases.rs Show resolved Hide resolved

# Cross-Platform Examples

## 2D Rendering

Example | Description
Copy link
Contributor

@atlv24 atlv24 Nov 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are a lot of changes, why add these vertical bars?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our markdown style is to have the tables with that style, so this is just fixing that. It is even inconsistent within the file itself.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can make it its own PR if you'd rather.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it render the same way? i think it looks noisy. can we standardize the other way?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does render the same way. I prefer with the bars, and I think that's what is more often used in general. I can change it if a decision-maker wants me to. We only have 2 .md files with tables.

examples/ecs/fallible_params.rs Show resolved Hide resolved
examples/testbed/3d.rs Outdated Show resolved Hide resolved
MorphKey::new("lshift-6", &[KeyCode::ShiftLeft], KeyCode::Digit6),
MorphKey::new("lshift-7", &[KeyCode::ShiftLeft], KeyCode::Digit7),
MorphKey::new("lshift-8", &[KeyCode::ShiftLeft], KeyCode::Digit8),
MorphKey::new("lshift-9", &[KeyCode::ShiftLeft], KeyCode::Digit9),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? this probably breaks things

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"lshift" isn't in the dictionary. Should we add it to the dictionary? I'll run the example to see if it still works.

crates/bevy_reflect/derive/src/derive_data.rs Outdated Show resolved Hide resolved
crates/bevy_pbr/src/render/pbr_functions.wgsl Show resolved Hide resolved
@atlv24
Copy link
Contributor

atlv24 commented Nov 17, 2024

also baricenter is not a word, its in the typo exclusions list, not sure where in the repo it is but it should be barycenter

@atlv24
Copy link
Contributor

atlv24 commented Nov 17, 2024

migration guide should include maths -> math too

@BenjaminBrienen
Copy link
Contributor Author

also baricenter is not a word, its in the typo exclusions list, not sure where in the repo it is but it should be barycenter

crates\bevy_math\src\primitives\dim3.rs

#[doc(alias("center", "barycenter", "baricenter"))]

I can remove the alias

@BenjaminBrienen
Copy link
Contributor Author

metallicity -> metalness was suggested in another piece of feedback

@BenjaminBrienen BenjaminBrienen marked this pull request as draft November 17, 2024 06:54
@BenjaminBrienen
Copy link
Contributor Author

Will split into multiple PRs for reviewability based on the lines laid out by atlv. Thanks for the amazing feedback! :)

@@ -64,7 +64,7 @@
* |output|
*
* Note that each [pass] has its own vertex and pixel shader. Remember to use
* oversized triangles instead of quads to avoid overshading along the
* oversized triangles instead of quads to avoid extra shading along the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overdraw. this is technically not precisely overdraw but its close enough. also it should say fullscreen triangle not oversized triangles (not plural)

@@ -444,7 +444,7 @@ const SMAA_LOCAL_CONTRAST_ADAPTATION_FACTOR: f32 = 2.0;
const SMAA_AREATEX_MAX_DISTANCE: f32 = 16.0;
const SMAA_AREATEX_MAX_DISTANCE_DIAG: f32 = 20.0;
const SMAA_AREATEX_PIXEL_SIZE: vec2<f32> = (1.0 / vec2<f32>(160.0, 560.0));
const SMAA_AREATEX_SUBTEX_SIZE: f32 = (1.0 / 7.0);
const SMAA_AREATEX_SUBTEXTURE_SIZE: f32 = (1.0 / 7.0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might be texel not texture. id need to read the associated papers or implementations, id leave this alone if i were you. it says TEX in a few other places and id rather stick to whatever convention the papers follow

Comment on lines +377 to +391
let mut deduplicated = component_ids.clone();
deduplicated.sort_unstable();
deduplicated.dedup();

if deduped.len() != component_ids.len() {
if deduplicated.len() != component_ids.len() {
// TODO: Replace with `Vec::partition_dedup` once https://github.com/rust-lang/rust/issues/54279 is stabilized
let mut seen = HashSet::new();
let mut dups = Vec::new();
let mut duplicates = Vec::new();
for id in component_ids {
if !seen.insert(id) {
dups.push(id);
duplicates.push(id);
}
}

let names = dups
let names = duplicates
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id revert this file, dups and deduped is more readable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Cross-Cutting Impacts the entire engine C-Code-Quality A section of code that is hard to understand or change C-Docs An addition or correction to our documentation D-Straightforward Simple bug fixes and API improvements, docs, test and examples M-Needs-Migration-Guide A breaking change to Bevy's public API that needs to be noted in a migration guide S-Needs-Review Needs reviewer attention (from anyone!) to move forward
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants