From cabb62043d0f2279121dc1ac9e12773f1c7dfe68 Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Thu, 21 Nov 2024 12:30:51 +0800 Subject: [PATCH] feat: re-add uvScale, vertexScale to unlit material --- thermion_dart/native/src/HighlightOverlay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thermion_dart/native/src/HighlightOverlay.cpp b/thermion_dart/native/src/HighlightOverlay.cpp index 918f41df..a477a6a9 100644 --- a/thermion_dart/native/src/HighlightOverlay.cpp +++ b/thermion_dart/native/src/HighlightOverlay.cpp @@ -33,8 +33,8 @@ namespace thermion _highlightMaterialInstance->setStencilCompareFunction(filament::backend::SamplerCompareFunc::NE); _highlightMaterialInstance->setStencilReferenceValue(1); - _highlightMaterialInstance->setParameter("color", filament::math::float3{r, g, b}); - _highlightMaterialInstance->setParameter("scale", 1.04f); + _highlightMaterialInstance->setParameter("baseColorFactor", filament::math::float3{r, g, b}); + _highlightMaterialInstance->setParameter("vertexScale", 1.04f); _highlightMaterialInstance->setCullingMode(filament::backend::CullingMode::FRONT);