Skip to content

Terrain variation asfeature#1

Merged
davo0411 merged 27 commits into
devfrom
Terrain-Variation-ASFEATURE
Apr 22, 2025
Merged

Terrain variation asfeature#1
davo0411 merged 27 commits into
devfrom
Terrain-Variation-ASFEATURE

Conversation

@davo0411
Copy link
Copy Markdown
Owner

No description provided.

davo0411 and others added 25 commits April 6, 2025 22:03
Fixed small compile issue with PBR. No difference to visual effect.
Working Terrain Tiling Fix as a separate feature within Community Shaders. Has a on/off switch in the settings.
Works with or without terrainvariation plugin enabled now
Fix for weird issue with parallax terrain shadows causing the whole terrain to go black at certain distances.
Plugin now works fully when installed, and does not throw any errors when TerrainVariation.hlsli is not present. This allows the plugin to be a separate nexus release.
Added checks for land weights, ensuring that sampling doesn't occur if it isn't needed. Should reduce overhead. Also tidied up the code, incorporating the blending of diffuse/rmaos/alpha into the layer code.
@davo0411 davo0411 self-assigned this Apr 22, 2025
@davo0411 davo0411 merged commit c71bdeb into dev Apr 22, 2025
davo0411 added a commit that referenced this pull request Oct 13, 2025
- Add PathHelpers namespace with GetSettingsTheme, GetThemesPath, GetFontsPath
- Remove hardcoded path constants from State and SettingsOverrideManager
- Add THEME config mode to State for theme file management
- Add GetThemesRealPath for accessing theme directory on disk
- Add stub LoadTheme/SaveTheme methods (full implementation in PR #4)

This provides the foundation for the theme system by centralizing
path management and removing hardcoded strings throughout the codebase.

Part of UI modernization effort - PR #1 of 8

Related:
- Blocks: PR #2 (Core UI Utilities)
- See: PR_1530_SPLIT_PLAN.md for full breakdown

Testing:
- Verify existing configs still load correctly
- Check that override paths resolve properly
davo0411 added a commit that referenced this pull request Oct 13, 2025
- Add ColorUtils namespace with luminance/contrast calculation (WCAG compliant)
- Add ContrastSelectable variants for automatic text contrast adjustment
- Add GetContrastingTextColor for accessible UI text coloring
- Add ButtonWithFlash for visual feedback on actions
- Add FeatureToggle for clean minimalist on/off switches
- Add restore-settings icon support (featureSettingRevert)
- Update FeatureIssues to use FrameBorder for button styling
- Improve category header styling with theme text colors
- Add proper spacing between logo and text in headers

These utilities provide the foundation for improved UI accessibility
and visual polish throughout the menu system.

Part of UI modernization effort - PR #2 of 8

Related:
- Depends on: PR #1 (Foundation)
- Blocks: PR #3 (Font System)
- See: PR_1530_SPLIT_PLAN.md for full breakdown

Testing:
- Verify button flash animations work correctly
- Test contrast calculation with various color combinations
- Check that category headers render properly
- Verify feature toggles respond to clicks
davo0411 added a commit that referenced this pull request Oct 13, 2025
Combined PR #1 and PR #2 from split plan due to code integration.

- Add PathHelpers namespace for consistent file system paths
- Implement theme JSON loading/saving with validation
- Add 9 theme presets + Font system with role-based architecture
- Add 15+ font families with proper licensing
- Font discovery, validation, and security (path traversal protection)
- RAII font scope guards for semantic font roles
- ThemeManager for theme/font management
- Integrate into Menu, State, and plugin initialization
- Remove blur shaders (reserved for future PR)
- Revert Performance Overlay and Upscaling changes (reserved for future PRs)
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