Implement reflective surfaces.

Reflective surfaces (planes) use a custom shader to blend their
texture with a texture that contains the reflected image. The
reflected image is rendered to a texture as a separate render
pass in the SceneView.

Because reflective textures are generated after the preparation
phase, additional functions are needed to reapply the texture
to the drawable.

PiperOrigin-RevId: 889213413
Change-Id: I7bad39d62e3e5ba38cf6ac667fec5b87bfa7b2a2
This commit is contained in:
Haroon Qureshi
2026-03-25 06:43:08 -07:00
committed by Copybara-Service
parent 02b0b40b1c
commit fd3ce4fe92
9 changed files with 265 additions and 7 deletions
+1
View File
@@ -43,6 +43,7 @@ target_sources(${MUJOCO_FILAMENT_TARGET_NAME}
filament/light.h
filament/material.cc
filament/material.h
filament/math_util.cc
filament/math_util.h
filament/model_util.cc
filament/model_util.h