feat(ambiente): implementa ajuste de iluminação e cor do ambiente (RF-ENV-007) - #12
Merged
Merged
Conversation
…-ENV-007)
- Shaders Vulkan (SPIR-V):
- environment.frag/vert: amostragem difusa da cor da tela (Screen Glow) com
atenuacao quadratica por distancia e normal da malha 3D, e modulacao do
brilho base da iluminacao e skybox.
- video, stereo, stereo_cubemap: aproximacao de Planckian locus (Kelvin 2700K-6500K)
e Modo Noturno (~3000K para reducao de luz azul) preservando limites de push
constants (128 bytes no stereo).
- C++ / JNI:
- vr_player_jni_vulkan.cpp: atomicos e metodos JNI para brilho, intensidade de glow,
temperatura de cor e modo noturno.
- vr_player_ambient.h: constantes kAmbientIntensityOff, kAmbientIntensitySubtle,
kAmbientIntensityStrong.
- vr_player_input_vulkan.h: suporte a downsample offscreen da tela nos ambientes 3D
(cinema, living_room).
- vr_player_app_vulkan.cpp: integracao do descriptor set de ambient nos draws de ambiente
e passagem das push constants correspondentes.
- Kotlin / Android UI:
- FeatureFlags.kt: persistencia de brilho, intensidade de glow, temperatura e
Flag.NIGHT_MODE em SharedPreferences.
- VRActivity.kt: exportacao JNI e sincronizacao de valores persistidos no onCreate.
- SettingsScreen.kt: secao 'Iluminacao e Ambiente' com sliders de brilho (0%-100%),
temperatura (2700K-6500K), selecao de chips de Screen Glow (Desligado/Sutil/Forte)
e toggle de Modo Noturno.
- strings.xml, values-pt-rBR, values-es: recursos localizados com placeholders posicionais.
- Testes & Docs:
- EnvironmentLightingTest.kt e FeatureFlagsTest.kt: testes unitarios cobrindo clamping,
mapeamentos e contratos de seguranca.
- docs/phases/PHASE-0.5-PREMIUM.md: marcacao das tarefas T4.1-T4.5 e DoD de iluminacao como concluidos.
3 tasks done
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Implementa o requisito RF-ENV-007 (Ajuste de Iluminação e Cor do Ambiente) da Fase 0.5 (§4 e DoD §6), completando 100% das tarefas T4.1 a T4.5:
cinema,living_room) com atenuação quadrática e orientação normal, sem uso deglReadPixels.video,stereo,stereo_cubemap), respeitando rigorosamente o limite de push constants de 128 bytes do Vulkan.SettingsScreen.ktcom slider de brilho, chips de Screen Glow (Desligado / Sutil / Forte), slider de temperatura em Kelvin e checkbox de Modo Noturno, persistidos viaFeatureFlagsem SharedPreferences.Type of change
Affected layers
app/) — app shell, UI panels, credentials, history, i18nnative/) — OpenXR session, Vulkan/GLES render loop, controller inputrust/) — demux, decode, audio, network protocolsHow has this been tested?
cargo test):./gradlew testDebugUnitTest(incluindoEnvironmentLightingTest,FeatureFlagsTest,I18nParityTest) passou com 100% de sucesso.cargo test -p protocols -p media-logic(83 testes passaram).environment.vert/frag,video.vert/frag,stereo.vert/frag,stereo_cubemap.vert/frag) compilados viaglslc.Checklist:
clippy -D warnings).If applicable
SCREEN_MODEinrust/bridge/src/lib.rs,enum class ScreenModeinnative/include/screen_mode.h, and the catalog inScreenFormatCatalog.kt.values/strings.xmlandvalues-pt-rBR/strings.xml, keeping the key order mirrored and using positional placeholders (%1$s).media-logic(host-testable) rather than incore, where it could not be tested.