aframe - AFrame 文本组件不使用“logarithmicDepthBuffer=true”呈现
问题描述
当我logarithmicDepthBuffer: true;
在 AFrame 渲染器组件中设置时,该组件的所有实例都text
不再渲染。
为了解决这个问题,我从场景中删除了所有其他实体,文本仍然没有呈现。我也尝试使用包装的<a-text>
组件,我尝试alphaTest: 0.5
设置depthTest: true
和设置sortObjects: false
只是为了看看我是否可以获得任何结果,但没有发现任何会产生任何结果的结果。
<a-scene renderer="logarithmicDepthBuffer: true;">
<a-text value="The quick Brown Fox Jumps over the Lazy Dog"></a-text>
</a-scene>
文本根本不出现。控制台中没有渲染工件或错误。
解决方案
尝试在渲染器周围使用 []
<a-scene [renderer]="logarithmicDepthBuffer: true;">
<a-text value="The quick Brown Fox Jumps over the Lazy Dog"></a-text>
</a-scene>
推荐阅读
- nginx - 如何配置有关proxy_pass的nginx?
- c# - 无法解决 Selenium c# 中的 webdriver 错误
- macos - 如何确定 Electron 应用程序是 MAC 还是 MAS 版本?
- c# - 在控制台播种中打印日文字符?
- python - Kivy 无法访问 ID
- ios - 通过 MFmail 将核心数据从 iOS 应用程序导出到 CSV
- rust - 在 Rust 中,我有大量我想管理的接收器对象,但是我在使用 Select 时遇到了生命周期问题
- python - 用多组条形显示条形图的值
- oracle - 我找不到 PL/SQL 中触发器变异的解决方案
- gitlab - 如果链接到我的 Google 帐户,我的 Gitlab 密码是什么?