FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(graphic): update default material and texture initialization by Miou-zora · Pull Request #432 · EngineSquared/EngineSquared · GitHub

fix(graphic): update default material and texture initialization - #432

Merged
ripel2 merged 3 commits into
mainfrom
set-correct-default-color-for-material
Jan 24, 2026
Merged

fix(graphic): update default material and texture initialization#432
ripel2 merged 3 commits into
mainfrom
set-correct-default-color-for-material

Conversation

Miou-zora commented Jan 24, 2026
edited by coderabbitai Bot
Loading

Copy link
Copy Markdown
Contributor

Removes explicit ambient color assignment from the default material and changes the default texture to a 1x1 fully white texture instead of a 2x2 colored texture. This simplifies the default resource setup.

Summary by CodeRabbit

  • Bug Fixes
    • Adjusted default material ambient initialization behavior
    • Updated default texture specifications to 1x1 size with white coloring

✏️ Tip: You can customize this high-level summary in your review settings.

Removes explicit ambient color assignment from the default material and changes the default texture to a 1x1 fully white texture instead of a 2x2 colored texture. This simplifies the default resource setup.
Miou-zora requested a review from a team January 24, 2026 10:08
Miou-zora self-assigned this Jan 24, 2026
Miou-zora added the enhancement New feature or request label Jan 24, 2026

coderabbitai Bot commented Jan 24, 2026
edited
Loading

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Two initialization routines were modified: default material ambient color initialization was removed, and default texture properties were changed—size from 2×2 to 1×1 pixels and color from brownish (150, 100, 100) to white (255, 255, 255).

Changes

Cohort / File(s) Summary
Material Initialization
src/plugin/default-pipeline/src/system/initialization/CreateDefaultMaterial.cpp
Removed explicit initialization of defaultMaterial.ambient to glm::vec3(0.5f, 0.5f, 0.5f), now relies on default initialization.
Texture Initialization
src/plugin/graphic/src/system/initialization/CreateDefaultTexture.cpp
Modified default texture: size reduced from 2×2 to 1×1 pixels; color changed from brownish (150, 100, 100, 255) to white (255, 255, 255, 255).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 With whiskers bright and nose held high,
I hop through code with joyful sigh,
A texture white, a pixel small,
Default values, simple and all!
No ambient shades to slow me down,
Just cleaner code throughout the town!

🚥 Pre-merge checks | ✅ 2 | ❌ 1 ❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix(graphic): update default material and texture initialization' accurately describes the main changes: removing ambient color assignment and replacing default texture setup.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

ripel2 merged commit 67ec0e7 into main Jan 24, 2026
15 checks passed
ripel2 deleted the set-correct-default-color-for-material branch January 24, 2026 16:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL